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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 11620012: [Profiles, Fixit] Making GAIAInfoUpdateService into a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing permissions Created 7 years, 12 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 | « chrome/browser/profiles/profile_impl.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index a17151e65f6cd31b9876faf33957e847d43b4eec..387f2d55296df6de255e4d39374cb9eb28f4a301 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -57,7 +57,7 @@
#include "chrome/browser/prefs/scoped_user_pref_update.h"
#include "chrome/browser/prerender/prerender_manager_factory.h"
#include "chrome/browser/profiles/chrome_version_service.h"
-#include "chrome/browser/profiles/gaia_info_update_service.h"
+#include "chrome/browser/profiles/gaia_info_update_service_factory.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/browser/profiles/profile_destroyer.h"
#include "chrome/browser/profiles/profile_info_cache.h"
@@ -432,7 +432,7 @@ void ProfileImpl::DoFinalInit(bool is_new_profile) {
// kGoogleServicesUsername, initialize components that depend on it to reflect
// the current value.
UpdateProfileUserNameCache();
- GetGAIAInfoUpdateService();
+ GAIAInfoUpdateServiceFactory::GetForProfile(this);
#if !defined(OS_CHROMEOS)
// Listen for bookmark model load, to bootstrap the sync service.
@@ -875,14 +875,6 @@ ProfileImpl::GetSpeechRecognitionPreferences() {
#endif
}
-GAIAInfoUpdateService* ProfileImpl::GetGAIAInfoUpdateService() {
- if (!gaia_info_update_service_.get() &&
- GAIAInfoUpdateService::ShouldUseGAIAProfileInfo(this)) {
- gaia_info_update_service_.reset(new GAIAInfoUpdateService(this));
- }
- return gaia_info_update_service_.get();
-}
-
DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() {
return DownloadServiceFactory::GetForProfile(this)->
GetDownloadManagerDelegate();
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698