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

Unified Diff: sync/test/engine/injectable_sync_context_proxy.cc

Issue 1368683003: USS SyncContextProxy / data type activation refactoring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: sync/test/engine/injectable_sync_context_proxy.cc
diff --git a/sync/test/engine/injectable_sync_context_proxy.cc b/sync/test/engine/injectable_sync_context_proxy.cc
index e194f26e637e169742051d6021bed5b07c9d5645..eb14c2ffc427cd27fed4584521df352024f2c565 100644
--- a/sync/test/engine/injectable_sync_context_proxy.cc
+++ b/sync/test/engine/injectable_sync_context_proxy.cc
@@ -19,9 +19,7 @@ InjectableSyncContextProxy::~InjectableSyncContextProxy() {
void InjectableSyncContextProxy::ConnectTypeToSync(
syncer::ModelType type,
- const DataTypeState& data_type_state,
- const UpdateResponseDataList& response_list,
- const base::WeakPtr<ModelTypeProcessor>& type_processor) {
+ scoped_ptr<ActivationContext> activation_context) {
// This class is allowed to participate in only one connection.
DCHECK(!is_worker_connected_);
is_worker_connected_ = true;
@@ -30,7 +28,7 @@ void InjectableSyncContextProxy::ConnectTypeToSync(
// an unsafe pointer to it. This is why we can only connect once.
scoped_ptr<CommitQueue> queue(queue_);
- type_processor->OnConnect(queue.Pass());
+ activation_context->type_processor->OnConnect(queue.Pass());
}
void InjectableSyncContextProxy::Disconnect(syncer::ModelType type) {

Powered by Google App Engine
This is Rietveld 408576698