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

Side by Side Diff: components/sync/api/entity_data.cc

Issue 2389063002: [Sync] Fixing easy lint violations. (Closed)
Patch Set: Updated for Max's comments. Created 4 years, 2 months 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
« no previous file with comments | « components/sync/api/entity_data.h ('k') | components/sync/api/fake_model_type_service.h » ('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 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
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
OLDNEW
« no previous file with comments | « components/sync/api/entity_data.h ('k') | components/sync/api/fake_model_type_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698