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

Unified Diff: components/sync/device_info/device_info_data_type_controller.cc

Issue 2511703004: [Sync] Remove UIDataTypeController (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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/device_info/device_info_data_type_controller.cc
diff --git a/components/sync/device_info/device_info_data_type_controller.cc b/components/sync/device_info/device_info_data_type_controller.cc
index a44d3bbd3a330d68dd6f1ccc6213a1113e89598d..c88c7a1a03fcfe59978f97b753d286c924385d9a 100644
--- a/components/sync/device_info/device_info_data_type_controller.cc
+++ b/components/sync/device_info/device_info_data_type_controller.cc
@@ -5,6 +5,7 @@
#include "components/sync/device_info/device_info_data_type_controller.h"
#include "base/callback.h"
+#include "base/threading/thread_task_runner_handle.h"
namespace syncer {
@@ -12,7 +13,11 @@ DeviceInfoDataTypeController::DeviceInfoDataTypeController(
const base::Closure& dump_stack,
SyncClient* sync_client,
LocalDeviceInfoProvider* local_device_info_provider)
- : UIDataTypeController(DEVICE_INFO, dump_stack, sync_client),
+ : NonUIDataTypeController(DEVICE_INFO,
+ dump_stack,
+ sync_client,
+ GROUP_UI,
+ base::ThreadTaskRunnerHandle::Get()),
local_device_info_provider_(local_device_info_provider) {}
DeviceInfoDataTypeController::~DeviceInfoDataTypeController() {}
@@ -38,7 +43,7 @@ void DeviceInfoDataTypeController::StopModels() {
void DeviceInfoDataTypeController::OnLocalDeviceInfoLoaded() {
DCHECK(CalledOnValidThread());
- DCHECK_EQ(state_, MODEL_STARTING);
+ DCHECK_EQ(state(), MODEL_STARTING);
DCHECK(local_device_info_provider_->GetLocalDeviceInfo());
subscription_.reset();

Powered by Google App Engine
This is Rietveld 408576698