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

Unified Diff: components/sync_driver/data_type_controller.cc

Issue 1314903004: Sync: Refactoring DataTypeController to make the design shareable with USS datatypes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR comments Created 5 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
« no previous file with comments | « components/sync_driver/data_type_controller.h ('k') | components/sync_driver/data_type_controller_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/data_type_controller.cc
diff --git a/components/sync_driver/data_type_controller.cc b/components/sync_driver/data_type_controller.cc
index dc91999dbbc8153120e851d2a7005ceef3193920..0e4bc4f10871ffe72dad3458c89753ded639beff 100644
--- a/components/sync_driver/data_type_controller.cc
+++ b/components/sync_driver/data_type_controller.cc
@@ -11,12 +11,10 @@
namespace sync_driver {
DataTypeController::DataTypeController(
- scoped_refptr<base::SingleThreadTaskRunner> ui_thread,
+ const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
const base::Closure& error_callback)
: base::RefCountedDeleteOnMessageLoop<DataTypeController>(ui_thread),
- error_callback_(error_callback),
- user_share_(NULL) {
-}
+ error_callback_(error_callback) {}
DataTypeController::~DataTypeController() {
}
@@ -41,14 +39,6 @@ syncer::SyncError DataTypeController::CreateAndUploadError(
type);
}
-void DataTypeController::OnUserShareReady(syncer::UserShare* share) {
- user_share_ = share;
-}
-
-syncer::UserShare* DataTypeController::user_share() const {
- return user_share_;
-}
-
bool DataTypeController::ReadyForStart() const {
return true;
}
« no previous file with comments | « components/sync_driver/data_type_controller.h ('k') | components/sync_driver/data_type_controller_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698