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

Unified Diff: components/sync_driver/data_type_controller.cc

Issue 317453002: sync: cut a few profile deps from DataTypeControllers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move OnUserShareReady Created 6 years, 6 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_manager_impl.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 aa975d2f16cd377fb7405f115087f19568a2f648..24f463cd30a4532a4225145f8948a682cdc5ac29 100644
--- a/components/sync_driver/data_type_controller.cc
+++ b/components/sync_driver/data_type_controller.cc
@@ -5,6 +5,7 @@
#include "components/sync_driver/data_type_controller.h"
#include "sync/internal_api/public/base/model_type.h"
+#include "sync/internal_api/public/user_share.h"
#include "sync/util/data_type_histogram.h"
namespace browser_sync {
@@ -13,7 +14,7 @@ DataTypeController::DataTypeController(
scoped_refptr<base::MessageLoopProxy> 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() {
@@ -39,6 +40,14 @@ syncer::SyncError DataTypeController::CreateAndUploadError(
type);
}
+void DataTypeController::OnUserShareReady(syncer::UserShare* share) {
+ user_share_ = share;
+}
+
+syncer::UserShare* DataTypeController::user_share() const {
+ return user_share_;
+}
+
void DataTypeController::RecordUnrecoverableError(
const tracked_objects::Location& from_here,
const std::string& message) {
« no previous file with comments | « components/sync_driver/data_type_controller.h ('k') | components/sync_driver/data_type_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698