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

Unified Diff: sync/engine/apply_control_data_updates.cc

Issue 10916036: [Sync] Implement keystore migration support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 3 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
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | sync/engine/apply_control_data_updates_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/apply_control_data_updates.cc
diff --git a/sync/engine/apply_control_data_updates.cc b/sync/engine/apply_control_data_updates.cc
index 2aa7dd4acfad3afd0ae60c04468269a51c0a7d29..7a52e8c36c58f5f6ec522e06aad5396a8b794b84 100644
--- a/sync/engine/apply_control_data_updates.cc
+++ b/sync/engine/apply_control_data_updates.cc
@@ -117,9 +117,9 @@ bool ApplyNigoriUpdates(syncable::WriteTransaction* trans,
// that passphrase as an explicit one via settings. The goal here is to
// ensure both sets of encryption keys are preserved.
if (cryptographer->is_ready()) {
- cryptographer->GetKeys(server_nigori->mutable_encrypted());
- server_nigori->set_using_explicit_passphrase(
- nigori_node.Get(SPECIFICS).nigori().using_explicit_passphrase());
+ cryptographer->GetKeys(server_nigori->mutable_encryption_keybag());
+ server_nigori->set_keybag_is_frozen(
+ nigori_node.Get(SPECIFICS).nigori().keybag_is_frozen());
}
nigori_node.Put(SPECIFICS, specifics);
DVLOG(1) << "Resolving simple conflict, merging nigori nodes: "
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | sync/engine/apply_control_data_updates_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698