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

Unified Diff: components/sync_driver/non_blocking_data_type_controller.cc

Issue 1382743004: [Sync] Move ModelTypeProcessor* and rename *Impl to Shared*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 2 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_driver/non_blocking_data_type_controller.cc
diff --git a/components/sync_driver/non_blocking_data_type_controller.cc b/components/sync_driver/non_blocking_data_type_controller.cc
index c7c417cddfd612570c9f989e37e26bfd32513c8e..9db8d623dd5fda0d3faf16db4cc4ee47b71b6769 100644
--- a/components/sync_driver/non_blocking_data_type_controller.cc
+++ b/components/sync_driver/non_blocking_data_type_controller.cc
@@ -7,8 +7,8 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/location.h"
-#include "sync/engine/model_type_processor_impl.h"
#include "sync/internal_api/public/activation_context.h"
+#include "sync/internal_api/public/shared_model_type_processor.h"
namespace sync_driver_v2 {
@@ -26,7 +26,7 @@ NonBlockingDataTypeController::~NonBlockingDataTypeController() {}
void NonBlockingDataTypeController::InitializeType(
const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
- const base::WeakPtr<syncer_v2::ModelTypeProcessorImpl>& type_processor) {
+ const base::WeakPtr<syncer_v2::SharedModelTypeProcessor>& type_processor) {
DCHECK(!IsSyncProxyConnected());
model_task_runner_ = task_runner;
type_processor_ = type_processor;
@@ -99,8 +99,8 @@ void NonBlockingDataTypeController::SendDisableSignal() {
DCHECK_EQ(DISABLED, GetDesiredState());
DVLOG(1) << "Disabling non-blocking sync type " << ModelTypeToString(type_);
model_task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&syncer_v2::ModelTypeProcessorImpl::Disable, type_processor_));
+ FROM_HERE, base::Bind(&syncer_v2::SharedModelTypeProcessor::Disable,
+ type_processor_));
current_state_ = DISABLED;
}

Powered by Google App Engine
This is Rietveld 408576698