| # Copyright 2020 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/buildflag_header.gni") |
| import("//ios/build/chrome_build.gni") |
| |
| buildflag_header("buildflags") { |
| header = "screen_time_buildflags.h" |
| flags = [ "IOS_SCREEN_TIME_ENABLED=$ios_enable_screen_time" ] |
| } |
| |
| if (ios_enable_screen_time) { |
| source_set("feature_flags") { |
| sources = [ |
| "features.h", |
| "features.mm", |
| ] |
| deps = [ "//base" ] |
| } |
| |
| source_set("model") { |
| sources = [ |
| "screen_time_history_deleter.h", |
| "screen_time_history_deleter.mm", |
| "screen_time_history_deleter_factory.h", |
| "screen_time_history_deleter_factory.mm", |
| ] |
| deps = [ |
| ":feature_flags", |
| "//base", |
| "//components/history/core/browser", |
| "//ios/chrome/browser/history/model", |
| "//ios/chrome/browser/shared/model/profile", |
| "//ios/chrome/browser/shared/model/profile:profile_keyed_service_factory", |
| "//net", |
| ] |
| } |
| } |