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

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

Issue 312163004: [Sync] Add support for dynamically enabling/disabling types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 6 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 15cd56054683da19bdf63aa0804c6f66c6930f8b..0325d0d15e98ca71acfc5c7e34f99677a1b3a8ed 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -60,10 +60,6 @@ namespace base {
class CommandLine;
};
-namespace extensions {
-struct Event;
-}
-
namespace browser_sync {
class BackendMigrator;
class ChangeProcessor;
@@ -553,12 +549,16 @@ class ProfileSyncService : public ProfileSyncServiceBase,
const tracked_objects::Location& from_here,
const std::string& message) OVERRIDE;
- // Called when a datatype wishes to disable itself due to having hit an
- // unrecoverable error.
- virtual void DisableBrokenDatatype(
- syncer::ModelType type,
- const tracked_objects::Location& from_here,
- std::string message);
+ // Called when a datatype wishes to disable itself. Note, this does not change
+ // preferred state of a datatype and is not persisted across restarts.
+ virtual void DisableDatatype(syncer::ModelType type,
+ const tracked_objects::Location& from_here,
+ std::string message);
+
+ // Called to re-enable a type disabled by DisableDatatype(..). Note, this does
+ // not change the preferred state of a datatype, and is not persisted across
+ // restarts.
+ void ReenableDatatype(syncer::ModelType type);
// The functions below (until ActivateDataType()) should only be
// called if sync_initialized() is true.
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory_impl.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698