OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/sync/api/entity_data.h" | 5 #include "components/sync/api/entity_data.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> |
8 | 9 |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
12 #include "components/sync/base/time.h" | 13 #include "components/sync/base/time.h" |
13 #include "components/sync/base/unique_position.h" | 14 #include "components/sync/base/unique_position.h" |
14 #include "components/sync/protocol/proto_value_conversions.h" | 15 #include "components/sync/protocol/proto_value_conversions.h" |
15 | 16 |
16 namespace syncer { | 17 namespace syncer { |
17 | 18 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 bool EntityDataTraits::HasValue(const EntityData& value) { | 73 bool EntityDataTraits::HasValue(const EntityData& value) { |
73 return !value.client_tag_hash.empty(); | 74 return !value.client_tag_hash.empty(); |
74 } | 75 } |
75 | 76 |
76 const EntityData& EntityDataTraits::DefaultValue() { | 77 const EntityData& EntityDataTraits::DefaultValue() { |
77 CR_DEFINE_STATIC_LOCAL(EntityData, default_instance, ()); | 78 CR_DEFINE_STATIC_LOCAL(EntityData, default_instance, ()); |
78 return default_instance; | 79 return default_instance; |
79 } | 80 } |
80 | 81 |
81 } // namespace syncer | 82 } // namespace syncer |
OLD | NEW |