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

Unified Diff: chrome/browser/ui/gesture_prefs_observer_factory_aura.h

Issue 12079097: Introduce PrefRegistrySyncable, simplifying PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add to PrefRegistrySyncable and PrefServiceSyncable to let sync know of pre-registered prefs. Created 7 years, 10 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
Index: chrome/browser/ui/gesture_prefs_observer_factory_aura.h
diff --git a/chrome/browser/ui/gesture_prefs_observer_factory_aura.h b/chrome/browser/ui/gesture_prefs_observer_factory_aura.h
index 9988b6e15a0ec1dd89aed2b73a3f118b9fc2b982..caa63457b23759ba58b867400f63d0c13cd54ecb 100644
--- a/chrome/browser/ui/gesture_prefs_observer_factory_aura.h
+++ b/chrome/browser/ui/gesture_prefs_observer_factory_aura.h
@@ -9,7 +9,8 @@
#include "base/memory/singleton.h"
#include "chrome/browser/profiles/profile_keyed_service_factory.h"
-class PrefServiceSyncable;
+class PrefRegistrySyncable;
+class PrefService;
class Profile;
// Create an observer per Profile that listens for gesture preferences updates.
@@ -23,12 +24,14 @@ class GesturePrefsObserverFactoryAura : public ProfileKeyedServiceFactory {
GesturePrefsObserverFactoryAura();
virtual ~GesturePrefsObserverFactoryAura();
- void RegisterOverscrollPrefs(PrefServiceSyncable* prefs);
+ void RegisterOverscrollPrefs(PrefRegistrySyncable* registry);
// ProfileKeyedServiceFactory:
virtual ProfileKeyedService* BuildServiceInstanceFor(
Profile* profile) const OVERRIDE;
- virtual void RegisterUserPrefs(PrefServiceSyncable* prefs) OVERRIDE;
+ virtual void DeprecatedRegisterUserPrefs(
+ PrefService* prefs,
+ PrefRegistrySyncable* registry) OVERRIDE;
virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;
virtual bool ServiceRedirectedInIncognito() const OVERRIDE;
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698