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

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 RegisterUserPrefs Created 8 years 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
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 7a2a57b93c031f9438de8e89df21b49d6b741320..fd22daf0125dbdc93baa89405a4ec373759433a5 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -56,7 +56,6 @@
#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/profile_dependency_manager.h"
#include "chrome/browser/profiles/profile_destroyer.h"
#include "chrome/browser/profiles/profile_info_cache.h"
@@ -434,7 +433,6 @@ void ProfileImpl::DoFinalInit(bool is_new_profile) {
// kGoogleServicesUsername, initialize components that depend on it to reflect
// the current value.
UpdateProfileUserNameCache();
- GetGAIAInfoUpdateService();
#if !defined(OS_CHROMEOS)
// Listen for bookmark model load, to bootstrap the sync service.
@@ -873,14 +871,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();

Powered by Google App Engine
This is Rietveld 408576698