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

Unified Diff: sync/internal_api/sync_core.cc

Issue 272323002: sync: Implement disabling of non blocking types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: sync/internal_api/sync_core.cc
diff --git a/sync/internal_api/sync_core.cc b/sync/internal_api/sync_core.cc
index 9c26095abd5ef7c5f915f34614c64bae1b598bfd..dbeb76d0038ae76f49eb672497b8a8fa2b180f23 100644
--- a/sync/internal_api/sync_core.cc
+++ b/sync/internal_api/sync_core.cc
@@ -25,6 +25,10 @@ void SyncCore::ConnectSyncTypeToCore(
model_type_registry_->InitializeNonBlockingType(type, task_runner, processor);
}
+void SyncCore::Disconnect(ModelType type) {
+ model_type_registry_->RemoveNonBlockingType(type);
+}
+
base::WeakPtr<SyncCore> SyncCore::AsWeakPtr() {
return weak_ptr_factory_.GetWeakPtr();
}

Powered by Google App Engine
This is Rietveld 408576698