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

Unified Diff: chrome/browser/sync/syncable/syncable_id.h

Issue 8475017: Check node references during sync DB init (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Smaller patch, relies on other fixes Created 9 years, 1 month 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/syncable/syncable_id.h
diff --git a/chrome/browser/sync/syncable/syncable_id.h b/chrome/browser/sync/syncable/syncable_id.h
index 2267040cbcaabbe700949fe928502f9df90164ae..73eb934cb89e74dd5bbf3c1ee43fef40a966a381 100644
--- a/chrome/browser/sync/syncable/syncable_id.h
+++ b/chrome/browser/sync/syncable/syncable_id.h
@@ -87,6 +87,11 @@ class Id {
inline bool operator > (const Id& that) const {
return s_ > that.s_;
}
+
+ const std::string& value() const {
+ return s_;
+ }
+
// Return the next highest ID in the lexicographic ordering. This is
// useful for computing upper bounds on std::sets that are ordered
// by operator<.
« chrome/browser/sync/syncable/syncable.cc ('K') | « chrome/browser/sync/syncable/syncable.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698