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

Side by Side Diff: chrome/browser/prefs/pref_service_syncable.h

Issue 12330008: Get rid of the ability to unregister preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head for commit. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_ 5 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_
6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_ 6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_
7 7
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/prefs/pref_model_associator.h" 9 #include "chrome/browser/prefs/pref_model_associator.h"
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // syncer::SyncableService directly. 65 // syncer::SyncableService directly.
66 syncer::SyncableService* GetSyncableService(); 66 syncer::SyncableService* GetSyncableService();
67 67
68 // Do not call this after having derived an incognito or per tab pref service. 68 // Do not call this after having derived an incognito or per tab pref service.
69 virtual void UpdateCommandLinePrefStore(PrefStore* cmd_line_store) OVERRIDE; 69 virtual void UpdateCommandLinePrefStore(PrefStore* cmd_line_store) OVERRIDE;
70 70
71 private: 71 private:
72 friend class PrefModelAssociator; 72 friend class PrefModelAssociator;
73 73
74 void AddRegisteredSyncablePreference(const char* path); 74 void AddRegisteredSyncablePreference(const char* path);
75 virtual void RemoveRegisteredPreference(const char* path) OVERRIDE;
76 75
77 // Invoked internally when the IsSyncing() state changes. 76 // Invoked internally when the IsSyncing() state changes.
78 void OnIsSyncingChanged(); 77 void OnIsSyncingChanged();
79 78
80 // Whether CreateIncognitoPrefService() has been called to create a 79 // Whether CreateIncognitoPrefService() has been called to create a
81 // "forked" PrefService. 80 // "forked" PrefService.
82 bool pref_service_forked_; 81 bool pref_service_forked_;
83 82
84 PrefModelAssociator pref_sync_associator_; 83 PrefModelAssociator pref_sync_associator_;
85 84
86 ObserverList<PrefServiceSyncableObserver> observer_list_; 85 ObserverList<PrefServiceSyncableObserver> observer_list_;
87 86
88 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncable); 87 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncable);
89 }; 88 };
90 89
91 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_ 90 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_model_associator.cc ('k') | chrome/browser/prefs/pref_service_syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698