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

Unified Diff: chrome/browser/sync/internal_api/change_reorder_buffer.h

Issue 8402014: [Sync] Make GetFirstChildId return a flag indicating success (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup comments 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/internal_api/change_reorder_buffer.h
diff --git a/chrome/browser/sync/internal_api/change_reorder_buffer.h b/chrome/browser/sync/internal_api/change_reorder_buffer.h
index c78bcaca8dc7ac5fc21c44c1bd753de364f8b7e9..ac7d90f6573eb925defa53fc026315ddb506fbd9 100644
--- a/chrome/browser/sync/internal_api/change_reorder_buffer.h
+++ b/chrome/browser/sync/internal_api/change_reorder_buffer.h
@@ -84,11 +84,12 @@ class ChangeReorderBuffer {
return operations_.empty();
}
- // Output a reordered list of changes to |changelist| using the items that
- // were pushed into the reorder buffer. |sync_trans| is used to determine the
- // ordering.
- ImmutableChangeRecordList
- GetAllChangesInTreeOrder(const BaseTransaction* sync_trans);
+ // Output a reordered list of changes to |changes| using the items
+ // that were pushed into the reorder buffer. |sync_trans| is used to
+ // determine the ordering. Returns true if successful, or false if
+ // an error was encountered.
+ bool GetAllChangesInTreeOrder(const BaseTransaction* sync_trans,
+ ImmutableChangeRecordList* changes);
Nicolas Zea 2011/10/27 18:28:30 consider WARN_UNUSED_RESULT
akalin 2011/10/27 21:11:43 Done.
private:
class Traversal;

Powered by Google App Engine
This is Rietveld 408576698