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

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

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: Created 4 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
Index: components/sync/driver/non_blocking_data_type_controller.cc
diff --git a/components/sync/driver/non_blocking_data_type_controller.cc b/components/sync/driver/non_blocking_data_type_controller.cc
index 4d293c8ff827c6d90b3dece83f8a9e518cf4d948..b6fe11dff0a83f0b2f8cf0ddee32833a52677ef9 100644
--- a/components/sync/driver/non_blocking_data_type_controller.cc
+++ b/components/sync/driver/non_blocking_data_type_controller.cc
@@ -78,6 +78,17 @@ void NonBlockingDataTypeController::LoadModels(
}
}
+void NonBlockingDataTypeController::GetAllNodes(
+ scoped_refptr<base::SequencedTaskRunner> task_runner,
+ const AllNodesCallback& callback) {
+ ScopedVector<base::ListValue> node_lists;
+ std::vector<syncer::ModelType> types_vector;
+ types_vector.push_back(type());
+ node_lists.push_back(new base::ListValue());
+ task_runner->PostTask(
+ FROM_HERE, base::Bind(callback, types_vector, base::Passed(&node_lists)));
+}
+
void NonBlockingDataTypeController::LoadModelsDone(
ConfigureResult result,
const syncer::SyncError& error) {

Powered by Google App Engine
This is Rietveld 408576698