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

Unified Diff: chrome/browser/sync/engine/build_and_process_conflict_sets_command.cc

Issue 8298016: Making some CHECK statements to NOTREACHED. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 9 years, 2 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/engine/build_and_process_conflict_sets_command.cc
diff --git a/chrome/browser/sync/engine/build_and_process_conflict_sets_command.cc b/chrome/browser/sync/engine/build_and_process_conflict_sets_command.cc
index a480874a206ee1d090a0719ecd1fc25a8bc80115..cd7da87ce107d75f18b28cb1cf81e7f0c1b1eb07 100644
--- a/chrome/browser/sync/engine/build_and_process_conflict_sets_command.cc
+++ b/chrome/browser/sync/engine/build_and_process_conflict_sets_command.cc
@@ -116,7 +116,9 @@ bool RollbackEntry(syncable::WriteTransaction* trans,
entry.Put(syncable::PARENT_ID, backup->ref(syncable::PARENT_ID));
if (!backup->ref(syncable::IS_DEL)) {
- CHECK(entry.PutPredecessor(backup->ref(syncable::PREV_ID)));
+ if (!entry.PutPredecessor(backup->ref(syncable::PREV_ID))) {
akalin 2011/10/15 01:19:44 add TODO to propagate error up, refer to a bug
+ NOTREACHED();
+ }
}
if (backup->ref(syncable::PREV_ID) != entry.Get(syncable::PREV_ID))

Powered by Google App Engine
This is Rietveld 408576698