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

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

Issue 2289143003: [Sync] Convert DTCs to be not RefCounted and NonThreadSafe. (Closed)
Patch Set: Rebase. Created 4 years, 3 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/device_info/device_info_data_type_controller.h
diff --git a/components/sync/device_info/device_info_data_type_controller.h b/components/sync/device_info/device_info_data_type_controller.h
index aa560856a1b7857c4e29d515c853fc34a60dce0d..79f535f33fc38a00f1753f6284a87f2de390e41b 100644
--- a/components/sync/device_info/device_info_data_type_controller.h
+++ b/components/sync/device_info/device_info_data_type_controller.h
@@ -8,7 +8,6 @@
#include <memory>
#include "base/macros.h"
-#include "base/single_thread_task_runner.h"
#include "components/sync/device_info/local_device_info_provider.h"
#include "components/sync/driver/ui_data_type_controller.h"
@@ -17,15 +16,14 @@ namespace sync_driver {
// DataTypeController for DEVICE_INFO model type.
class DeviceInfoDataTypeController : public UIDataTypeController {
public:
+ // |dump_stack| is called when an unrecoverable error occurs.
DeviceInfoDataTypeController(
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
- const base::Closure& error_callback,
+ const base::Closure& dump_stack,
SyncClient* sync_client,
LocalDeviceInfoProvider* local_device_info_provider);
-
- private:
~DeviceInfoDataTypeController() override;
+ private:
// UIDataTypeController implementations.
bool StartModels() override;
void StopModels() override;

Powered by Google App Engine
This is Rietveld 408576698