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 6565c27bf9e8fb871882967651a7554a0083f174..8836f67cf9f67c467ec02a2f0faa02e8ba4a7efe 100644 |
--- a/chrome/browser/sync/glue/password_model_associator.cc |
+++ b/chrome/browser/sync/glue/password_model_associator.cc |
@@ -117,8 +117,9 @@ SyncError PasswordModelAssociator::AssociateModels() { |
Associate(&tag, node.GetId()); |
} else { |
sync_api::WriteNode node(&trans); |
- if (!node.InitUniqueByCreation(syncable::PASSWORDS, |
- password_root, tag)) { |
+ sync_api::WriteNode::InitUniqueByCreationResult result = |
+ node.InitUniqueByCreation(syncable::PASSWORDS, password_root, tag); |
+ if (result != sync_api::WriteNode::INIT_SUCCESS) { |
STLDeleteElements(&passwords); |
return error_handler_->CreateAndUploadError( |
FROM_HERE, |