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

Unified Diff: chrome/browser/sync/glue/password_model_associator.cc

Issue 2770003: Changed syncable::PASSWORD to syncable::PASSWORDS for consistency (Closed)
Patch Set: Created 10 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
« no previous file with comments | « chrome/browser/sync/glue/password_model_associator.h ('k') | chrome/browser/sync/glue/sync_backend_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/password_model_associator.cc
diff --git a/chrome/browser/sync/glue/password_model_associator.cc b/chrome/browser/sync/glue/password_model_associator.cc
index 923ee7b16322a6b53bd0d4deca276e36a7d78075..ad6b83d74b3ee1323fb802e27e41a1406d22b060 100644
--- a/chrome/browser/sync/glue/password_model_associator.cc
+++ b/chrome/browser/sync/glue/password_model_associator.cc
@@ -75,7 +75,7 @@ bool PasswordModelAssociator::AssociateModels() {
std::string tag = MakeTag(**ix);
sync_api::ReadNode node(&trans);
- if (node.InitByClientTagLookup(syncable::PASSWORD, tag)) {
+ if (node.InitByClientTagLookup(syncable::PASSWORDS, tag)) {
sync_pb::PasswordSpecificsData password;
if (!node.GetPasswordSpecifics(&password)) {
STLDeleteElements(&passwords);
@@ -88,7 +88,7 @@ bool PasswordModelAssociator::AssociateModels() {
if (MergePasswords(password, **ix, &new_password)) {
sync_api::WriteNode write_node(&trans);
- if (!write_node.InitByClientTagLookup(syncable::PASSWORD, tag)) {
+ if (!write_node.InitByClientTagLookup(syncable::PASSWORDS, tag)) {
STLDeleteElements(&passwords);
LOG(ERROR) << "Failed to edit password sync node.";
return false;
@@ -100,7 +100,7 @@ bool PasswordModelAssociator::AssociateModels() {
Associate(&tag, node.GetId());
} else {
sync_api::WriteNode node(&trans);
- if (!node.InitUniqueByCreation(syncable::PASSWORD,
+ if (!node.InitUniqueByCreation(syncable::PASSWORDS,
password_root, tag)) {
STLDeleteElements(&passwords);
LOG(ERROR) << "Failed to create password sync node.";
« no previous file with comments | « chrome/browser/sync/glue/password_model_associator.h ('k') | chrome/browser/sync/glue/sync_backend_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698