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

Unified Diff: components/sync/driver/generic_change_processor.cc

Issue 2278333002: Supplimentary identifier for passwords specific (Closed)
Patch Set: cleanup Created 4 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: components/sync/driver/generic_change_processor.cc
diff --git a/components/sync/driver/generic_change_processor.cc b/components/sync/driver/generic_change_processor.cc
index f7abe0506bd0ca258640018106c4268b20db0024..55a17325d18ead37034da47b75e598c5fdce43ef 100644
--- a/components/sync/driver/generic_change_processor.cc
+++ b/components/sync/driver/generic_change_processor.cc
@@ -17,6 +17,7 @@
#include "components/sync/api/sync_change.h"
#include "components/sync/api/sync_error.h"
#include "components/sync/api/syncable_service.h"
+#include "components/sync/base/passphrase_type.h"
#include "components/sync/base/unrecoverable_error_handler.h"
#include "components/sync/core/base_node.h"
#include "components/sync/core/change_record.h"
@@ -40,7 +41,10 @@ void SetNodeSpecifics(const sync_pb::EntitySpecifics& entity_specifics,
if (syncer::GetModelTypeFromSpecifics(entity_specifics) ==
syncer::PASSWORDS) {
write_node->SetPasswordSpecifics(
- entity_specifics.password().client_only_encrypted_data());
+ entity_specifics.password().client_only_encrypted_data(),
+ // TODO(melandory): Since PasswordsSpecifics care about passphrase type.
+ // the real value should be passed here.
+ syncer::PassphraseType::UNDEFINED);
} else {
write_node->SetEntitySpecifics(entity_specifics);
}

Powered by Google App Engine
This is Rietveld 408576698