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

Unified Diff: components/sync_driver/ui_model_type_controller_unittest.cc

Issue 1763953002: [USS] Change the place where SharedModelTypeProcessor got created (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 9 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/ui_model_type_controller_unittest.cc
diff --git a/components/sync_driver/ui_model_type_controller_unittest.cc b/components/sync_driver/ui_model_type_controller_unittest.cc
index 5a9878ba6c5d7acb7e569fc02baa3caf6b4f6b6a..2625200e6787a2a57514fdaa3036c9148dd7b220 100644
--- a/components/sync_driver/ui_model_type_controller_unittest.cc
+++ b/components/sync_driver/ui_model_type_controller_unittest.cc
@@ -39,8 +39,6 @@ class TestUIModelTypeController : public UIModelTypeController {
model_type,
sync_client) {}
- void InitializeProcessorInTest() { InitializeProcessor(); }
-
private:
~TestUIModelTypeController() override {}
};
@@ -145,10 +143,11 @@ class UIModelTypeControllerTest : public testing::Test,
void SetUp() override {
controller_ = new TestUIModelTypeController(
ui_loop_.task_runner(), base::Closure(), syncer::DEVICE_INFO, this);
- controller_->InitializeProcessorInTest();
+
+ // TODO(crbug.com/543407): Move the processor stuff out.
type_processor_ =
- ((syncer_v2::SharedModelTypeProcessor*)service_.change_processor())
- ->AsWeakPtrForUI();
+ service_.SetUpProcessor(new syncer_v2::SharedModelTypeProcessor(
+ syncer::DEVICE_INFO, &service_));
}
void TearDown() override {
« no previous file with comments | « components/sync_driver/non_ui_model_type_controller_unittest.cc ('k') | sync/api/model_type_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698