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

Side by Side Diff: sync/syncable/syncable_id.cc

Issue 11636006: WIP: The Bookmark Position Megapatch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Various updates, including switch suffix to unique_client_tag style Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/syncable/syncable_id.h ('k') | sync/syncable/syncable_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sync/syncable/syncable_id.h" 5 #include "sync/syncable/syncable_id.h"
6 6
7 #include <iosfwd> 7 #include <iosfwd>
8 8
9 #include "base/string_number_conversions.h"
9 #include "base/values.h" 10 #include "base/values.h"
10 11
11 using std::ostream; 12 using std::ostream;
12 using std::string; 13 using std::string;
13 14
14 namespace syncer { 15 namespace syncer {
15 namespace syncable { 16 namespace syncable {
16 17
17 ostream& operator<<(ostream& out, const Id& id) { 18 ostream& operator<<(ostream& out, const Id& id) {
18 out << id.s_; 19 out << id.s_;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 id.s_.clear(); 64 id.s_.clear();
64 return id; 65 return id;
65 } 66 }
66 67
67 Id GetNullId() { 68 Id GetNullId() {
68 return Id(); // Currently == root. 69 return Id(); // Currently == root.
69 } 70 }
70 71
71 } // namespace syncable 72 } // namespace syncable
72 } // namespace syncer 73 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/syncable/syncable_id.h ('k') | sync/syncable/syncable_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698