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 ad3572c9a21c489c9e94dfec9f074d8723870166..870d3a344d46fd2e3404cb6f9e4812c86162bd5b 100644 |
--- a/chrome/browser/sync/glue/password_change_processor.cc |
+++ b/chrome/browser/sync/glue/password_change_processor.cc |
@@ -82,8 +82,10 @@ void PasswordChangeProcessor::Observe( |
switch (change->type()) { |
case PasswordStoreChange::ADD: { |
sync_api::WriteNode sync_node(&trans); |
- if (sync_node.InitUniqueByCreation(syncable::PASSWORDS, |
- password_root, tag)) { |
+ sync_api::WriteNode::InitUniqueByCreationResult result = |
+ sync_node.InitUniqueByCreation(syncable::PASSWORDS, password_root, |
+ tag); |
+ if (result == sync_api::WriteNode::INIT_SUCCESS) { |
PasswordModelAssociator::WriteToSyncNode(change->form(), &sync_node); |
model_associator_->Associate(&tag, sync_node.GetId()); |
break; |