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

Unified Diff: sync/internal_api/sync_context_proxy_impl.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/internal_api/sync_context_proxy_impl.h ('k') | sync/internal_api/test/null_sync_context_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/sync_context_proxy_impl.cc
diff --git a/sync/internal_api/sync_context_proxy_impl.cc b/sync/internal_api/sync_context_proxy_impl.cc
index 9d8c290bc2a2959b4c608e6dad095eaa3f6d011c..605b8a0352493ce03d8d3a2cc9906537c278bc7f 100644
--- a/sync/internal_api/sync_context_proxy_impl.cc
+++ b/sync/internal_api/sync_context_proxy_impl.cc
@@ -7,8 +7,7 @@
#include "base/bind.h"
#include "base/location.h"
#include "base/single_thread_task_runner.h"
-#include "base/thread_task_runner_handle.h"
-#include "sync/internal_api/public/non_blocking_sync_common.h"
+#include "sync/internal_api/public/activation_context.h"
#include "sync/internal_api/public/sync_context.h"
namespace syncer_v2 {
@@ -24,18 +23,12 @@ SyncContextProxyImpl::~SyncContextProxyImpl() {
void SyncContextProxyImpl::ConnectTypeToSync(
syncer::ModelType type,
- const DataTypeState& data_type_state,
- const UpdateResponseDataList& saved_pending_updates,
- const base::WeakPtr<ModelTypeProcessor>& type_processor) {
+ scoped_ptr<ActivationContext> activation_context) {
VLOG(1) << "ConnectTypeToSync: " << ModelTypeToString(type);
- sync_task_runner_->PostTask(FROM_HERE,
- base::Bind(&SyncContext::ConnectSyncTypeToWorker,
- sync_context_,
- type,
- data_type_state,
- saved_pending_updates,
- base::ThreadTaskRunnerHandle::Get(),
- type_processor));
+ sync_task_runner_->PostTask(
+ FROM_HERE,
+ base::Bind(&SyncContext::ConnectSyncTypeToWorker, sync_context_, type,
+ base::Passed(&activation_context)));
}
void SyncContextProxyImpl::Disconnect(syncer::ModelType type) {
« no previous file with comments | « sync/internal_api/sync_context_proxy_impl.h ('k') | sync/internal_api/test/null_sync_context_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698