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

Unified Diff: sync/engine/syncer.cc

Issue 10559104: sync: Process 'control' data separately (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update patch. Still draft quality. Created 8 years, 6 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/engine/syncer.cc
diff --git a/sync/engine/syncer.cc b/sync/engine/syncer.cc
index da4e27b4686957ceac5a842f7048305afe9ee5fa..f566d9cad3b4ad3741d4bac2a69c0b0b19c95362 100644
--- a/sync/engine/syncer.cc
+++ b/sync/engine/syncer.cc
@@ -10,6 +10,7 @@
#include "base/message_loop.h"
#include "base/time.h"
#include "build/build_config.h"
+#include "sync/engine/apply_metadata_updates.h"
#include "sync/engine/apply_updates_command.h"
#include "sync/engine/build_commit_command.h"
#include "sync/engine/cleanup_disabled_types_command.h"
@@ -166,6 +167,10 @@ void Syncer::SyncShare(sessions::SyncSession* session,
break;
}
case APPLY_UPDATES: {
+ // These include encryption updates that should be applied early.
+ // FIXME: Shoud this use the same transaction as ApplyUpdatesCommand?
+ ApplyMetadataUpdates(session->context()->directory());
Nicolas Zea 2012/06/21 02:58:36 We can enforce the early application by just makin
rlarocque 2012/06/21 18:23:27 I'd rather not enforce an ordering constraint on t
tim (not reviewing) 2012/06/22 16:34:15 Yeah, we shouldn't try to force ordering within th
+
ApplyUpdatesCommand apply_updates;
apply_updates.Execute(session);
if (last_step == APPLY_UPDATES) {

Powered by Google App Engine
This is Rietveld 408576698