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

Unified Diff: components/sync/driver/proxy_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/proxy_data_type_controller.cc
diff --git a/components/sync/driver/proxy_data_type_controller.cc b/components/sync/driver/proxy_data_type_controller.cc
index 99c74b78c856366553531f3c283eedf70a852041..6bbf4044234b341f1744f1405c05a6a0e21e8c04 100644
--- a/components/sync/driver/proxy_data_type_controller.cc
+++ b/components/sync/driver/proxy_data_type_controller.cc
@@ -4,6 +4,9 @@
#include "components/sync/driver/proxy_data_type_controller.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
+#include "base/values.h"
#include "components/sync/api/sync_merge_result.h"
namespace sync_driver {
@@ -70,4 +73,15 @@ void ProxyDataTypeController::ActivateDataType(
void ProxyDataTypeController::DeactivateDataType(
BackendDataTypeConfigurer* configurer) {}
+void ProxyDataTypeController::GetAllNodes(
maxbogue 2016/08/25 23:38:59 I suspect this shouldn't need an implementation, s
Gang Wu 2016/08/26 16:48:04 proxy_tab is registered and enabled type, and cann
+ 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());
skym 2016/08/26 18:41:39 I know Max suggested to switch to returning a sing
Gang Wu 2016/08/29 20:07:41 Done.
+ node_lists.push_back(new base::ListValue());
+ task_runner->PostTask(
+ FROM_HERE, base::Bind(callback, types_vector, base::Passed(&node_lists)));
+}
+
} // namespace sync_driver

Powered by Google App Engine
This is Rietveld 408576698