Commit 2bd748a7 authored by sdefresne's avatar sdefresne Committed by Commit bot

Merge //ios/chrome/browser/signin:{authentication_service,signin}.

The downstream code now depends on upstream implementation of
AuthenticationService so merge the targets (but leave temporary
targets until downstream code dependencies have been removed).

BUG=653086

Review-Url: https://codereview.chromium.org/2389323004
Cr-Commit-Position: refs/heads/master@{#423870}
parent 7e9a1a9f
......@@ -31,6 +31,7 @@
#include "ios/chrome/browser/signin/account_fetcher_service_factory.h"
#include "ios/chrome/browser/signin/account_reconcilor_factory.h"
#include "ios/chrome/browser/signin/account_tracker_service_factory.h"
#include "ios/chrome/browser/signin/authentication_service_factory.h"
#include "ios/chrome/browser/signin/gaia_cookie_manager_service_factory.h"
#include "ios/chrome/browser/signin/oauth2_token_service_factory.h"
#include "ios/chrome/browser/signin/signin_client_factory.h"
......@@ -76,6 +77,7 @@ void EnsureBrowserStateKeyedServiceFactoriesBuilt() {
ios::TopSitesFactory::GetInstance();
ios::WebDataServiceFactory::GetInstance();
ios::WebHistoryServiceFactory::GetInstance();
AuthenticationServiceFactory::GetInstance();
IOSChromeGCMProfileServiceFactory::GetInstance();
IOSChromeLargeIconCacheFactory::GetInstance();
IOSChromeLargeIconServiceFactory::GetInstance();
......
......@@ -14,6 +14,10 @@ source_set("signin") {
"account_reconcilor_factory.h",
"account_tracker_service_factory.cc",
"account_tracker_service_factory.h",
"authentication_service.h",
"authentication_service.mm",
"authentication_service_factory.h",
"authentication_service_factory.mm",
"browser_state_data_remover.h",
"browser_state_data_remover.mm",
"chrome_identity_service_observer_bridge.h",
......@@ -44,16 +48,18 @@ source_set("signin") {
"signin_util.mm",
]
deps = [
"//components/pref_registry",
"//components/prefs",
"//components/browser_sync",
"//components/sync",
"//ios/web",
"//url",
]
public_deps = [
"//base",
"//components/content_settings/core/browser",
"//components/keyed_service/core",
"//components/keyed_service/ios",
"//components/metrics",
"//components/pref_registry",
"//components/prefs",
"//components/signin/core/browser",
"//components/signin/ios/browser",
......@@ -67,67 +73,36 @@ source_set("signin") {
# Temporary target to allow upstreaming authentication_service*.{cc,h}
# without breaking downstream repository when rolling the CL. Will be
# removed once downstream code no longer use it.
source_set("authentication_service") {
sources = [
"authentication_service.h",
"authentication_service.mm",
"authentication_service_factory.h",
"authentication_service_factory.mm",
]
deps = [
":signin",
"//components/browser_sync",
"//components/prefs",
"//components/signin/ios/browser",
"//components/sync",
"//ios/chrome/browser",
]
public_deps = [
"//base",
"//components/keyed_service/core",
"//components/keyed_service/ios",
"//components/pref_registry",
"//components/signin/core/browser",
"//google_apis",
"//ios/public/provider/chrome/browser",
]
group("authentication_service") {
}
source_set("test_support") {
testonly = true
sources = [
"authentication_service_fake.h",
"authentication_service_fake.mm",
"fake_oauth2_token_service_builder.h",
"fake_oauth2_token_service_builder.mm",
"fake_signin_manager_builder.cc",
"fake_signin_manager_builder.h",
]
deps = [
":signin",
"//base",
"//components/signin/core/browser:test_support",
"//components/signin/ios/browser",
"//ios/chrome/browser",
]
public_deps = [
":signin",
"//base",
"//ios/public/provider/chrome/browser",
]
}
# Temporary target to allow upstreaming authentication_service*.{cc,h}
# without breaking downstream repository when rolling the CL. Will be
# removed once downstream code no longer use it.
source_set("authentication_service_test_support") {
group("authentication_service_test_support") {
testonly = true
sources = [
"authentication_service_fake.h",
"authentication_service_fake.mm",
]
deps = [
"//ios/chrome/browser",
]
public_deps = [
":authentication_service",
":signin",
"//base",
"//ios/public/provider/chrome/browser",
]
}
source_set("unit_tests") {
......@@ -138,7 +113,6 @@ source_set("unit_tests") {
"gaia_auth_fetcher_ios_unittest.mm",
]
deps = [
":authentication_service",
":signin",
":test_support",
"//base",
......
......@@ -135,7 +135,6 @@ class AuthenticationServiceTest : public PlatformTest,
std::unique_ptr<syncable_prefs::PrefServiceSyncable> prefs =
factory.CreateSyncable(registry.get());
RegisterBrowserStatePrefs(registry.get());
AuthenticationService::RegisterPrefs(registry.get());
return prefs;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment