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

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

Issue 7033043: [Sync] Speed up sync node browser/search in about:sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 7 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/syncer_util.cc
diff --git a/chrome/browser/sync/engine/syncer_util.cc b/chrome/browser/sync/engine/syncer_util.cc
index 7340a27762e8c70f475d1a35f0420d2931f08451..ff371c624493ef4fb3e790b0f0fef9d41ee0e0c6 100644
--- a/chrome/browser/sync/engine/syncer_util.cc
+++ b/chrome/browser/sync/engine/syncer_util.cc
@@ -90,7 +90,7 @@ void SyncerUtil::ChangeEntryIDAndUpdateChildren(
}
if (entry->Get(IS_DIR)) {
// Get all child entries of the old id.
- trans->directory()->GetChildHandles(trans, old_id, children);
+ trans->directory()->GetChildHandlesById(trans, old_id, children);
Directory::ChildHandles::iterator i = children->begin();
while (i != children->end()) {
MutableEntry child_entry(trans, GET_BY_HANDLE, *i++);
@@ -279,7 +279,7 @@ UpdateAttemptResponse SyncerUtil::AttemptToUpdateEntry(
}
} else if (entry->Get(IS_DIR)) {
Directory::ChildHandles handles;
- trans->directory()->GetChildHandles(trans, id, &handles);
+ trans->directory()->GetChildHandlesById(trans, id, &handles);
if (!handles.empty()) {
// If we have still-existing children, then we need to deal with
// them before we can process this change.

Powered by Google App Engine
This is Rietveld 408576698