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

Unified Diff: chrome/browser/sync/profile_sync_service.h

Issue 7669073: [Sync] Add support for enabling session sync remotely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor + address comments Created 9 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/sync/profile_sync_service.h
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index d32b7371a1c973b1d3b6a3e03b930adb40c30ad8..3a7ce251375009774fe3b01235fed4681e8f365f 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -164,7 +164,7 @@ class ProfileSyncService : public browser_sync::SyncFrontend,
// makes the data type controller available for use, it does not
// enable or activate the synchronization of the data type (see
// ActivateDataType). Takes ownership of the pointer.
- void RegisterDataTypeController(
+ virtual void RegisterDataTypeController(
browser_sync::DataTypeController* data_type_controller);
// Returns the session model associator associated with this type, but only if
@@ -207,6 +207,8 @@ class ProfileSyncService : public browser_sync::SyncFrontend,
const syncable::ModelTypeSet& encrypted_types) OVERRIDE;
virtual void OnMigrationNeededForTypes(
const syncable::ModelTypeSet& types) OVERRIDE;
+ virtual void OnDataTypesChanged(
+ const syncable::ModelTypeSet& to_add) OVERRIDE;
void OnClearServerDataTimeout();
@@ -550,6 +552,14 @@ class ProfileSyncService : public browser_sync::SyncFrontend,
static const char* GetPrefNameForDataType(syncable::ModelType data_type);
+ // About-flags experiment names for datatypes that aren't enabled by default
+ // yet.
+ static std::string GetExperimentNameForDataType(
+ syncable::ModelType data_type);
+
+ // Create and register a new datatype controller.
+ void RegisterNewDataType(syncable::ModelType data_type);
+
// Time at which we begin an attempt a GAIA authorization.
base::TimeTicks auth_start_time_;

Powered by Google App Engine
This is Rietveld 408576698