OLD | NEW |
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 Loading... |
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 |
OLD | NEW |