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

Unified Diff: sync/internal_api/sync_core_proxy_impl.cc

Issue 272323002: sync: Implement disabling of non blocking types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes 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
« no previous file with comments | « sync/internal_api/sync_core_proxy_impl.h ('k') | sync/internal_api/sync_core_proxy_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/sync_core_proxy_impl.cc
diff --git a/sync/internal_api/sync_core_proxy_impl.cc b/sync/internal_api/sync_core_proxy_impl.cc
index a75041acc2482a9816826481da269da61709afc9..7e4ecce7dee11d39c8c8954b05f89d1d95ac68e1 100644
--- a/sync/internal_api/sync_core_proxy_impl.cc
+++ b/sync/internal_api/sync_core_proxy_impl.cc
@@ -32,6 +32,11 @@ void SyncCoreProxyImpl::ConnectTypeToCore(
type_processor));
}
+void SyncCoreProxyImpl::Disconnect(ModelType type) {
+ sync_task_runner_->PostTask(
+ FROM_HERE, base::Bind(&SyncCore::Disconnect, sync_core_, type));
+}
+
scoped_ptr<SyncCoreProxy> SyncCoreProxyImpl::Clone() const {
return scoped_ptr<SyncCoreProxy>(
new SyncCoreProxyImpl(sync_task_runner_, sync_core_));
« no previous file with comments | « sync/internal_api/sync_core_proxy_impl.h ('k') | sync/internal_api/sync_core_proxy_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698