Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: ios/chrome/browser/signin/account_fetcher_service_factory.cc

Issue 1380103004: Delay fetching account info until OnRefreshTokensLoaded(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix iOs Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/signin/core/browser/signin_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/signin/account_fetcher_service_factory.cc
diff --git a/ios/chrome/browser/signin/account_fetcher_service_factory.cc b/ios/chrome/browser/signin/account_fetcher_service_factory.cc
index 3e215a5bd659e455331b38ee4c7cca3d774aeb11..173ebac2bbaaff5239eeade475f469bedc93d9e6 100644
--- a/ios/chrome/browser/signin/account_fetcher_service_factory.cc
+++ b/ios/chrome/browser/signin/account_fetcher_service_factory.cc
@@ -5,8 +5,6 @@
#include "ios/chrome/browser/signin/account_fetcher_service_factory.h"
#include "base/memory/singleton.h"
-#include "components/invalidation/impl/profile_invalidation_provider.h"
-#include "components/invalidation/public/invalidation_service.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
#include "components/signin/core/browser/account_fetcher_service.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
@@ -25,7 +23,6 @@ AccountFetcherServiceFactory::AccountFetcherServiceFactory()
DependsOn(AccountTrackerServiceFactory::GetInstance());
DependsOn(OAuth2TokenServiceFactory::GetInstance());
DependsOn(SigninClientFactory::GetInstance());
- DependsOn(GetKeyedServiceProvider()->GetProfileInvalidationProviderFactory());
}
AccountFetcherServiceFactory::~AccountFetcherServiceFactory() {}
@@ -52,16 +49,10 @@ scoped_ptr<KeyedService> AccountFetcherServiceFactory::BuildServiceInstanceFor(
ios::ChromeBrowserState* browser_state =
ios::ChromeBrowserState::FromBrowserState(context);
scoped_ptr<AccountFetcherService> service(new AccountFetcherService());
- invalidation::ProfileInvalidationProvider* invalidation_provider =
- ios::GetKeyedServiceProvider()
- ->GetProfileInvalidationProviderForBrowserState(browser_state);
- invalidation::InvalidationService* invalidation_service =
- invalidation_provider->GetInvalidationService();
service->Initialize(
SigninClientFactory::GetForBrowserState(browser_state),
OAuth2TokenServiceFactory::GetForBrowserState(browser_state),
- ios::AccountTrackerServiceFactory::GetForBrowserState(browser_state),
- invalidation_service);
+ ios::AccountTrackerServiceFactory::GetForBrowserState(browser_state));
return service.Pass();
}
« no previous file with comments | « components/signin/core/browser/signin_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698