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

Unified Diff: chrome/browser/sync/glue/password_change_processor.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
Index: chrome/browser/sync/glue/password_change_processor.cc
diff --git a/chrome/browser/sync/glue/password_change_processor.cc b/chrome/browser/sync/glue/password_change_processor.cc
index 57a377de88c4739705492d06c4aa2f6b00d57d96..a8afd7069e6d4e5e4c5bcdf101614dba07a4a837 100644
--- a/chrome/browser/sync/glue/password_change_processor.cc
+++ b/chrome/browser/sync/glue/password_change_processor.cc
@@ -69,7 +69,7 @@ void PasswordChangeProcessor::Observe(NotificationType type,
switch (change->type()) {
case PasswordStoreChange::ADD: {
sync_api::WriteNode sync_node(&trans);
- if (!sync_node.InitUniqueByCreation(syncable::PASSWORD,
+ if (!sync_node.InitUniqueByCreation(syncable::PASSWORDS,
password_root, tag)) {
LOG(ERROR) << "Failed to create password sync node.";
error_handler()->OnUnrecoverableError();
@@ -151,7 +151,7 @@ void PasswordChangeProcessor::ApplyChangesFromSyncModel(
// Check that the changed node is a child of the passwords folder.
DCHECK(password_root.GetId() == sync_node.GetParentId());
- DCHECK(syncable::PASSWORD == sync_node.GetModelType());
+ DCHECK(syncable::PASSWORDS == sync_node.GetModelType());
sync_pb::PasswordSpecificsData password_data;
if (!sync_node.GetPasswordSpecifics(&password_data)) {
« no previous file with comments | « chrome/browser/sync/glue/data_type_manager_impl.cc ('k') | chrome/browser/sync/glue/password_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698