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

Unified Diff: chrome/browser/supervised_user/supervised_user_service.h

Issue 428143002: Sync: Add a SyncTypePreferenceProvider interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename fix Created 6 years, 4 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/supervised_user/supervised_user_service.h
diff --git a/chrome/browser/supervised_user/supervised_user_service.h b/chrome/browser/supervised_user/supervised_user_service.h
index 5f2d4e683977f2d7392b26f1342ee16c834421b3..eec40803dc81b43d4c13b24a85a45a806e7ecc3d 100644
--- a/chrome/browser/supervised_user/supervised_user_service.h
+++ b/chrome/browser/supervised_user/supervised_user_service.h
@@ -17,6 +17,7 @@
#include "chrome/browser/supervised_user/supervised_user_url_filter.h"
#include "chrome/browser/supervised_user/supervised_users.h"
#include "chrome/browser/sync/profile_sync_service_observer.h"
+#include "chrome/browser/sync/sync_type_preference_provider.h"
#include "chrome/browser/ui/browser_list_observer.h"
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/web_contents.h"
@@ -51,6 +52,7 @@ class SupervisedUserService : public KeyedService,
public extensions::ManagementPolicy::Provider,
public extensions::ExtensionRegistryObserver,
#endif
+ public SyncTypePreferenceProvider,
public ProfileSyncServiceObserver,
public chrome::BrowserListObserver {
public:
@@ -139,7 +141,7 @@ class SupervisedUserService : public KeyedService,
// Convenience method that registers this supervised user using
// |registration_utility| and initializes sync with the returned token.
// The |callback| will be called when registration is complete,
- // whether it suceeded or not -- unless registration was cancelled manually,
+ // whether it succeeded or not -- unless registration was cancelled manually,
// in which case the callback will be ignored.
void RegisterAndInitSync(
SupervisedUserRegistrationUtility* registration_utility,
@@ -172,6 +174,9 @@ class SupervisedUserService : public KeyedService,
extensions::UnloadedExtensionInfo::Reason reason) OVERRIDE;
#endif
+ // SyncTypePreferenceProvider implementation:
+ virtual syncer::ModelTypeSet GetPreferredDataTypes() OVERRIDE;
+
// ProfileSyncServiceObserver implementation:
virtual void OnStateChanged() OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/supervised_user/supervised_user_service.cc » ('j') | chrome/browser/sync/profile_sync_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698