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

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: Address 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..5bbdccf089e5ffe1564e7cb10d6dd09c0332db7f 100644
--- a/chrome/browser/sync/internal_api/change_reorder_buffer.h
+++ b/chrome/browser/sync/internal_api/change_reorder_buffer.h
@@ -13,6 +13,7 @@
#include <map>
#include <vector>
+#include "base/compiler_specific.h"
#include "base/memory/linked_ptr.h"
#include "chrome/browser/sync/internal_api/base_transaction.h"
#include "chrome/browser/sync/internal_api/change_record.h"
@@ -84,11 +85,13 @@ 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) WARN_UNUSED_RESULT;
private:
class Traversal;
« no previous file with comments | « chrome/browser/sync/internal_api/base_node.cc ('k') | chrome/browser/sync/internal_api/change_reorder_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698