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

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

Issue 7822008: [Sync] Remove static initializers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 9 years, 4 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
« no previous file with comments | « chrome/browser/sync/syncable/syncable_id.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable/syncable_id.cc
diff --git a/chrome/browser/sync/syncable/syncable_id.cc b/chrome/browser/sync/syncable/syncable_id.cc
index f3f6b74a8b21027d0d1721513f238dce0beec32c..a4381f96e3df3cb066a4b485cc377bde8f4e760b 100644
--- a/chrome/browser/sync/syncable/syncable_id.cc
+++ b/chrome/browser/sync/syncable/syncable_id.cc
@@ -13,7 +13,6 @@ using std::ostream;
using std::string;
namespace syncable {
-const Id kNullId; // Currently == root.
ostream& operator<<(ostream& out, const Id& id) {
out << id.s_;
@@ -71,4 +70,8 @@ Id Id::GetLeastIdForLexicographicComparison() {
return id;
}
+Id GetNullId() {
+ return Id(); // Currently == root.
+}
+
} // namespace syncable
« no previous file with comments | « chrome/browser/sync/syncable/syncable_id.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698