| 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 "sync/api/entity_data.h" | 5 #include "components/sync/api/entity_data.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 | 10 |
| 11 namespace syncer_v2 { | 11 namespace syncer_v2 { |
| 12 | 12 |
| 13 EntityData::EntityData() {} | 13 EntityData::EntityData() {} |
| 14 EntityData::~EntityData() {} | 14 EntityData::~EntityData() {} |
| 15 | 15 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 40 bool EntityDataTraits::HasValue(const EntityData& value) { | 40 bool EntityDataTraits::HasValue(const EntityData& value) { |
| 41 return !value.client_tag_hash.empty(); | 41 return !value.client_tag_hash.empty(); |
| 42 } | 42 } |
| 43 | 43 |
| 44 const EntityData& EntityDataTraits::DefaultValue() { | 44 const EntityData& EntityDataTraits::DefaultValue() { |
| 45 CR_DEFINE_STATIC_LOCAL(EntityData, default_instance, ()); | 45 CR_DEFINE_STATIC_LOCAL(EntityData, default_instance, ()); |
| 46 return default_instance; | 46 return default_instance; |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace syncer_v2 | 49 } // namespace syncer_v2 |
| OLD | NEW |