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

Unified Diff: sync/engine/syncer.cc

Issue 72403003: sync: Per-type update application (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/engine/syncer.cc
diff --git a/sync/engine/syncer.cc b/sync/engine/syncer.cc
index 0c451ee1e71ea722df5492ffb2ac6941a5eafffe..39b068b6f668b0be932f666500e6f1104e0136be 100644
--- a/sync/engine/syncer.cc
+++ b/sync/engine/syncer.cc
@@ -11,7 +11,6 @@
#include "base/time/time.h"
#include "build/build_config.h"
#include "sync/engine/apply_control_data_updates.h"
-#include "sync/engine/apply_updates_and_resolve_conflicts_command.h"
#include "sync/engine/commit.h"
#include "sync/engine/conflict_resolver.h"
#include "sync/engine/download.h"
@@ -115,8 +114,11 @@ void Syncer::ApplyUpdates(SyncSession* session) {
ApplyControlDataUpdates(session->context()->directory());
- ApplyUpdatesAndResolveConflictsCommand apply_updates;
- apply_updates.Execute(session);
+ UpdateHandlerMap* handler_map = session->context()->update_handler_map();
+ for (UpdateHandlerMap::iterator it = handler_map->begin();
+ it != handler_map->end(); ++it) {
+ it->second->ApplyUpdates(session->mutable_status_controller());
+ }
session->context()->set_hierarchy_conflict_detected(
session->status_controller().num_hierarchy_conflicts() > 0);

Powered by Google App Engine
This is Rietveld 408576698