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

Unified Diff: chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc

Issue 9264062: [Sync] Consolidate DataTypeController methods that post on the backend thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add suppressions Created 8 years, 11 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/glue/new_non_frontend_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc b/chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc
index 2b0fa16c25cd0fdb14ac798664228c7225e6468a..51a2226c5229b4540ff5b226c6f089ccca4c3e6d 100644
--- a/chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc
+++ b/chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc
@@ -227,6 +227,13 @@ void NewNonFrontendDataTypeController::Stop() {
set_state(NOT_RUNNING);
}
+void NewNonFrontendDataTypeController::StopLocalServiceAsync() {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ PostTaskOnBackendThread(
+ FROM_HERE,
+ base::Bind(&NewNonFrontendDataTypeController::StopLocalService, this));
+}
+
void NewNonFrontendDataTypeController::StopLocalService() {
DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::UI));
if (local_service_.get())
@@ -235,11 +242,6 @@ void NewNonFrontendDataTypeController::StopLocalService() {
shared_change_processor_ = NULL;
}
-bool NewNonFrontendDataTypeController::StopAssociationAsync() {
- NOTIMPLEMENTED();
- return false;
-}
-
void NewNonFrontendDataTypeController::CreateSyncComponents() {
NOTIMPLEMENTED();
}

Powered by Google App Engine
This is Rietveld 408576698