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

Unified Diff: components/sync/driver/model_type_controller.cc

Issue 2808113003: [Sync] Post back to UI thread for USS GetAllNodes. (Closed)
Patch Set: Created 3 years, 8 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 | « components/browser_sync/profile_sync_service.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/model_type_controller.cc
diff --git a/components/sync/driver/model_type_controller.cc b/components/sync/driver/model_type_controller.cc
index 5b4329f178abcf6fc46fdb9002586c0512aa3881..8e98059415eaecb64f5cac21c0e69bfda79a9217 100644
--- a/components/sync/driver/model_type_controller.cc
+++ b/components/sync/driver/model_type_controller.cc
@@ -226,8 +226,8 @@ DataTypeController::State ModelTypeController::state() const {
}
void ModelTypeController::GetAllNodes(const AllNodesCallback& callback) {
- PostBridgeTask(FROM_HERE,
- base::Bind(&ModelTypeDebugInfo::GetAllNodes, callback));
+ PostBridgeTask(FROM_HERE, base::Bind(&ModelTypeDebugInfo::GetAllNodes,
+ BindToCurrentThread(callback)));
}
void ModelTypeController::GetStatusCounters(
« no previous file with comments | « components/browser_sync/profile_sync_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698