Add an Android specific ChildAccountInfoFetcher that talks to the AccountManager.
[chromium-blink-merge.git] / components / signin / core / browser / BUILD.gn
blobc9c82ead86295a94171e55354c90dfcf1d8b4e77
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 static_library("browser") {
6   sources = [
7     "about_signin_internals.cc",
8     "about_signin_internals.h",
9     "account_fetcher_service.cc",
10     "account_fetcher_service.h",
11     "account_info_fetcher.cc",
12     "account_info_fetcher.h",
13     "account_reconcilor.cc",
14     "account_reconcilor.h",
15     "account_tracker_service.cc",
16     "account_tracker_service.h",
17     "android/component_jni_registrar.cc",
18     "android/component_jni_registrar.h",
19     "child_account_info_fetcher.cc",
20     "child_account_info_fetcher.h",
21     "child_account_info_fetcher_android.cc",
22     "child_account_info_fetcher_android.h",
23     "child_account_info_fetcher_impl.cc",
24     "child_account_info_fetcher_impl.h",
25     "device_activity_fetcher.cc",
26     "device_activity_fetcher.h",
27     "gaia_cookie_manager_service.cc",
28     "gaia_cookie_manager_service.h",
29     "profile_identity_provider.cc",
30     "profile_identity_provider.h",
31     "profile_oauth2_token_service.cc",
32     "profile_oauth2_token_service.h",
33     "refresh_token_annotation_request.cc",
34     "refresh_token_annotation_request.h",
35     "signin_client.cc",
36     "signin_client.h",
37     "signin_cookie_changed_subscription.cc",
38     "signin_cookie_changed_subscription.h",
39     "signin_error_controller.cc",
40     "signin_error_controller.h",
41     "signin_header_helper.cc",
42     "signin_header_helper.h",
43     "signin_internals_util.cc",
44     "signin_internals_util.h",
45     "signin_manager.cc",
46     "signin_manager.h",
47     "signin_manager_base.cc",
48     "signin_manager_base.h",
49     "signin_manager_cookie_helper.cc",
50     "signin_manager_cookie_helper.h",
51     "signin_metrics.cc",
52     "signin_metrics.h",
53     "signin_tracker.cc",
54     "signin_tracker.h",
55     "webdata/token_service_table.cc",
56     "webdata/token_service_table.h",
57     "webdata/token_web_data.cc",
58     "webdata/token_web_data.h",
59   ]
61   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
63   deps = [
64     "//base",
65     "//crypto",
66     "//google_apis",
67     "//net",
68     "//sql",
69     "//third_party/icu",
70     "//components/content_settings/core/browser",
71     "//components/content_settings/core/common",
72     "//components/google/core/browser",
73     "//components/invalidation/public",
74     "//components/keyed_service/core",
75     "//components/os_crypt",
76     "//components/webdata/common",
77   ]
79   if (is_chromeos) {
80     sources -= [ "signin_manager.cc" ]
81   }
83   if (is_android) {
84     sources -= [
85       "child_account_info_fetcher_impl.cc",
86       "child_account_info_fetcher_impl.h",
87     ]
88     deps += [ "android:jni_headers" ]
89   }
92 static_library("test_support") {
93   testonly = true
94   sources = [
95     "fake_auth_status_provider.cc",
96     "fake_auth_status_provider.h",
97     "fake_profile_oauth2_token_service.cc",
98     "fake_profile_oauth2_token_service.h",
99     "fake_signin_manager.cc",
100     "fake_signin_manager.h",
101     "test_signin_client.cc",
102     "test_signin_client.h",
103   ]
105   deps = [
106     ":browser",
107     "//testing/gtest",
108   ]