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

Unified Diff: sync/internal_api/sync_core_proxy_impl.cc

Issue 280983002: Implement sync in the NonBlockingTypeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add some comments Created 6 years, 7 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/internal_api/sync_core_proxy_impl.cc
diff --git a/sync/internal_api/sync_core_proxy_impl.cc b/sync/internal_api/sync_core_proxy_impl.cc
index 7e4ecce7dee11d39c8c8954b05f89d1d95ac68e1..81c0fa2451a5a0adafd4ccd6668d1c61f523e289 100644
--- a/sync/internal_api/sync_core_proxy_impl.cc
+++ b/sync/internal_api/sync_core_proxy_impl.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/location.h"
#include "base/message_loop/message_loop_proxy.h"
+#include "sync/engine/non_blocking_sync_common.h"
#include "sync/internal_api/sync_core.h"
namespace syncer {
@@ -21,15 +22,16 @@ SyncCoreProxyImpl::~SyncCoreProxyImpl() {}
void SyncCoreProxyImpl::ConnectTypeToCore(
ModelType type,
+ const DataTypeState& data_type_state,
base::WeakPtr<NonBlockingTypeProcessor> type_processor) {
VLOG(1) << "ConnectTypeToCore: " << ModelTypeToString(type);
- sync_task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&SyncCore::ConnectSyncTypeToCore,
- sync_core_,
- type,
- base::MessageLoopProxy::current(),
- type_processor));
+ sync_task_runner_->PostTask(FROM_HERE,
+ base::Bind(&SyncCore::ConnectSyncTypeToCore,
+ sync_core_,
+ type,
+ data_type_state,
+ base::MessageLoopProxy::current(),
+ type_processor));
}
void SyncCoreProxyImpl::Disconnect(ModelType type) {

Powered by Google App Engine
This is Rietveld 408576698