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

Unified Diff: trunk/src/components/sync_driver/data_type_controller.cc

Issue 465113002: Revert 288557 "[Sync] Use OnSingleDataTypeUnrecoverableError for..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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: trunk/src/components/sync_driver/data_type_controller.cc
===================================================================
--- trunk/src/components/sync_driver/data_type_controller.cc (revision 289111)
+++ trunk/src/components/sync_driver/data_type_controller.cc (working copy)
@@ -12,9 +12,11 @@
DataTypeController::DataTypeController(
scoped_refptr<base::MessageLoopProxy> ui_thread,
- const base::Closure& error_callback)
+ const base::Closure& error_callback,
+ const DisableTypeCallback& disable_callback)
: base::RefCountedDeleteOnMessageLoop<DataTypeController>(ui_thread),
error_callback_(error_callback),
+ disable_callback_(disable_callback),
user_share_(NULL) {
}
@@ -49,6 +51,11 @@
return user_share_;
}
+DataTypeController::DisableTypeCallback
+DataTypeController::disable_callback() {
+ return disable_callback_;
+}
+
bool DataTypeController::ReadyForStart() const {
return true;
}
« no previous file with comments | « trunk/src/components/sync_driver/data_type_controller.h ('k') | trunk/src/components/sync_driver/data_type_error_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698