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

Unified Diff: sync/internal_api/write_node.cc

Issue 1161463005: [Sync] Don't crash for encryption errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments Created 5 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: sync/internal_api/write_node.cc
diff --git a/sync/internal_api/write_node.cc b/sync/internal_api/write_node.cc
index cefe8547e12108a4200fd466a59312798bf5496a..4f49dfde29b10ad85482ee23f3846de4df4db409 100644
--- a/sync/internal_api/write_node.cc
+++ b/sync/internal_api/write_node.cc
@@ -168,8 +168,8 @@ void WriteNode::SetPasswordSpecifics(
// This will only update password_specifics if the underlying unencrypted blob
// was different from |data| or was not encrypted with the proper passphrase.
if (!cryptographer->Encrypt(data, password_specifics->mutable_encrypted())) {
- NOTREACHED() << "Failed to encrypt password, possibly due to sync node "
- << "corruption";
+ LOG(ERROR) << "Failed to encrypt password, possibly due to sync node "
stanisc 2015/06/09 00:04:02 Should this code also upload the dump to give this
Nicolas Zea 2015/06/09 19:42:03 The DecryptIfNecessary method's calls to OnUnrecov
+ << "corruption";
return;
}
SetEntitySpecifics(entity_specifics);

Powered by Google App Engine
This is Rietveld 408576698