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

Unified Diff: components/sync_driver/ui_data_type_controller.cc

Issue 462863002: [Sync] Don't synchronously stop datatypes that encounter errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | « chrome/browser/sync/glue/frontend_data_type_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/ui_data_type_controller.cc
diff --git a/components/sync_driver/ui_data_type_controller.cc b/components/sync_driver/ui_data_type_controller.cc
index eca577920b85cbf995ca7861991ada92f58f8691..23487a2edb8e415c81752e4409b55c95cfc80122 100644
--- a/components/sync_driver/ui_data_type_controller.cc
+++ b/components/sync_driver/ui_data_type_controller.cc
@@ -331,9 +331,12 @@ void UIDataTypeController::OnSingleDataTypeUnrecoverableError(
if (!start_callback_.is_null()) {
syncer::SyncMergeResult local_merge_result(type());
local_merge_result.set_error(error);
- start_callback_.Run(RUNTIME_ERROR,
- local_merge_result,
- syncer::SyncMergeResult(type()));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(start_callback_,
+ RUNTIME_ERROR,
+ local_merge_result,
+ syncer::SyncMergeResult(type())));
}
}
« no previous file with comments | « chrome/browser/sync/glue/frontend_data_type_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698