Chromium Code Reviews| 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) { |