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