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

Unified Diff: chrome/browser/profiles/gaia_info_update_service.h

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/gaia_info_update_service.h
diff --git a/chrome/browser/profiles/gaia_info_update_service.h b/chrome/browser/profiles/gaia_info_update_service.h
index a51e865ea2f75116fd28344bc9edb01f286ff49d..cc7128e6fff6ba83b341ed956fcfc53574b6397f 100644
--- a/chrome/browser/profiles/gaia_info_update_service.h
+++ b/chrome/browser/profiles/gaia_info_update_service.h
@@ -12,13 +12,15 @@
#include "base/timer.h"
#include "chrome/browser/profiles/profile_downloader.h"
#include "chrome/browser/profiles/profile_downloader_delegate.h"
+#include "chrome/browser/profiles/profile_keyed_service.h"
class Profile;
class ProfileDownloader;
// This service kicks off a download of the user's name and profile picture.
// The results are saved in the profile info cache.
-class GAIAInfoUpdateService : public ProfileDownloaderDelegate {
+class GAIAInfoUpdateService : public ProfileDownloaderDelegate,
+ public ProfileKeyedService {
public:
explicit GAIAInfoUpdateService(Profile* profile);
virtual ~GAIAInfoUpdateService();
@@ -29,9 +31,6 @@ class GAIAInfoUpdateService : public ProfileDownloaderDelegate {
// Checks if downloading GAIA info for the given profile is allowed.
static bool ShouldUseGAIAProfileInfo(Profile* profile);
- // Register prefs for a profile.
- static void RegisterUserPrefs(PrefServiceBase* prefs);
-
// ProfileDownloaderDelegate:
virtual bool NeedsProfilePicture() const OVERRIDE;
virtual int GetDesiredImageSideLength() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698