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

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

Issue 10152003: sync: Make BaseNode lookup-related Init functions return specific failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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/read_node.h
diff --git a/chrome/browser/sync/internal_api/read_node.h b/chrome/browser/sync/internal_api/read_node.h
index 2dd90a5aa9a5a43bba7a719861692c7c22410785..74bcd32111af7bdc7e62b3d3cdedaa0f523eb1e0 100644
--- a/chrome/browser/sync/internal_api/read_node.h
+++ b/chrome/browser/sync/internal_api/read_node.h
@@ -28,9 +28,10 @@ class ReadNode : public BaseNode {
// populate the node.
// BaseNode implementation.
- virtual bool InitByIdLookup(int64 id) OVERRIDE;
- virtual bool InitByClientTagLookup(syncable::ModelType model_type,
- const std::string& tag) OVERRIDE;
+ virtual InitByLookupResult InitByIdLookup(int64 id) OVERRIDE;
+ virtual InitByLookupResult InitByClientTagLookup(
+ syncable::ModelType model_type,
+ const std::string& tag) OVERRIDE;
// There is always a root node, so this can't fail. The root node is
// never mutable, so root lookup is only possible on a ReadNode.
@@ -39,7 +40,7 @@ class ReadNode : public BaseNode {
// Each server-created permanent node is tagged with a unique string.
// Look up the node with the particular tag. If it does not exist,
// return false.
- bool InitByTagLookup(const std::string& tag);
+ InitByLookupResult InitByTagLookup(const std::string& tag);
// Implementation of BaseNode's abstract virtual accessors.
virtual const syncable::Entry* GetEntry() const OVERRIDE;
« no previous file with comments | « chrome/browser/sync/internal_api/change_reorder_buffer.cc ('k') | chrome/browser/sync/internal_api/read_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698