summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/glue/sync_backend_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/sync/glue/sync_backend_host.cc')
-rw-r--r--chrome/browser/sync/glue/sync_backend_host.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc
index 80564de..493593c 100644
--- a/chrome/browser/sync/glue/sync_backend_host.cc
+++ b/chrome/browser/sync/glue/sync_backend_host.cc
@@ -208,6 +208,14 @@ void SyncBackendHost::UpdateCredentials(const SyncCredentials& credentials) {
credentials));
}
+void SyncBackendHost::UpdateEnabledTypes(
+ const syncable::ModelTypeSet& types) {
+ core_thread_.message_loop()->PostTask(FROM_HERE,
+ NewRunnableMethod(core_.get(),
+ &SyncBackendHost::Core::DoUpdateEnabledTypes,
+ types));
+}
+
void SyncBackendHost::StartSyncingWithServer() {
core_thread_.message_loop()->PostTask(FROM_HERE,
NewRunnableMethod(core_.get(), &SyncBackendHost::Core::DoStartSyncing));
@@ -644,6 +652,12 @@ void SyncBackendHost::Core::DoUpdateCredentials(
syncapi_->UpdateCredentials(credentials);
}
+void SyncBackendHost::Core::DoUpdateEnabledTypes(
+ const syncable::ModelTypeSet& types) {
+ DCHECK(MessageLoop::current() == host_->core_thread_.message_loop());
+ syncapi_->UpdateEnabledTypes(types);
+}
+
void SyncBackendHost::Core::DoStartSyncing() {
DCHECK(MessageLoop::current() == host_->core_thread_.message_loop());
syncapi_->StartSyncing();