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

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: Addressed CR feedback 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 | « sync/test/engine/injectable_sync_context_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0999caf1a37374781eadd98349432e792d019428 100644
--- a/sync/test/engine/injectable_sync_context_proxy.cc
+++ b/sync/test/engine/injectable_sync_context_proxy.cc
@@ -6,6 +6,7 @@
#include "sync/engine/commit_queue.h"
#include "sync/engine/model_type_processor_impl.h"
+#include "sync/internal_api/public/activation_context.h"
namespace syncer_v2 {
@@ -19,9 +20,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 +29,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) {
« no previous file with comments | « sync/test/engine/injectable_sync_context_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698