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

Unified Diff: sync/syncable/nigori_util.cc

Issue 11636006: WIP: The Bookmark Position Megapatch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Various updates, including switch suffix to unique_client_tag style Created 8 years 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
« no previous file with comments | « sync/syncable/mutable_entry.cc ('k') | sync/syncable/parent_child_index.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/nigori_util.cc
diff --git a/sync/syncable/nigori_util.cc b/sync/syncable/nigori_util.cc
index 01aaa8609468165f586ab8ecf2dfb7bc10bd40de..aaa3d3d9b3874154057bd5bd21b6c8de1d4e5d00 100644
--- a/sync/syncable/nigori_util.cc
+++ b/sync/syncable/nigori_util.cc
@@ -108,12 +108,7 @@ bool VerifyDataTypeEncryptionForTest(
}
std::queue<Id> to_visit;
- Id id_string;
- if (!trans->directory()->GetFirstChildId(
- trans, type_root.Get(ID), &id_string)) {
- NOTREACHED();
- return false;
- }
+ Id id_string = type_root.GetFirstChildId();
to_visit.push(id_string);
while (!to_visit.empty()) {
id_string = to_visit.front();
@@ -127,12 +122,7 @@ bool VerifyDataTypeEncryptionForTest(
return false;
}
if (child.Get(IS_DIR)) {
- Id child_id_string;
- if (!trans->directory()->GetFirstChildId(
- trans, child.Get(ID), &child_id_string)) {
- NOTREACHED();
- return false;
- }
+ Id child_id_string = child.GetFirstChildId();
// Traverse the children.
to_visit.push(child_id_string);
}
@@ -151,7 +141,7 @@ bool VerifyDataTypeEncryptionForTest(
}
}
// Push the successor.
- to_visit.push(child.Get(NEXT_ID));
+ to_visit.push(child.GetSuccessorId());
}
return true;
}
« no previous file with comments | « sync/syncable/mutable_entry.cc ('k') | sync/syncable/parent_child_index.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698