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

Unified Diff: sync/engine/syncer.cc

Issue 10832286: sync: Introduce control data types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add ToFullModelTypeSet() function Created 8 years, 4 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 66afdbcde415def66eec4d52231182855fa04978..d8d2ce3a8e80f69c5336f355ff5219c17f020af3 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_control_data_updates.h"
#include "sync/engine/apply_updates_command.h"
#include "sync/engine/build_commit_command.h"
#include "sync/engine/commit.h"
@@ -158,6 +159,9 @@ void Syncer::SyncShare(sessions::SyncSession* session,
break;
}
case APPLY_UPDATES: {
+ // These include encryption updates that should be applied early.
+ ApplyControlDataUpdates(session->context()->directory());
+
ApplyUpdatesCommand apply_updates;
apply_updates.Execute(session);
session->SendEventNotification(SyncEngineEvent::STATUS_CHANGED);

Powered by Google App Engine
This is Rietveld 408576698