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

Side by Side Diff: components/sync/engine/cycle/update_counters.cc

Issue 2387553002: [Sync] Removing duplicated includes between cc and h files. (Closed)
Patch Set: Fixing DataTypeStatusTable 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/engine/cycle/update_counters.h" 5 #include "components/sync/engine/cycle/update_counters.h"
6 6
7 #include "base/json/json_string_value_serializer.h" 7 #include "base/json/json_string_value_serializer.h"
8 #include "base/values.h"
9 8
10 namespace syncer { 9 namespace syncer {
11 10
12 UpdateCounters::UpdateCounters() 11 UpdateCounters::UpdateCounters()
13 : num_updates_received(0), 12 : num_updates_received(0),
14 num_reflected_updates_received(0), 13 num_reflected_updates_received(0),
15 num_tombstone_updates_received(0), 14 num_tombstone_updates_received(0),
16 num_updates_applied(0), 15 num_updates_applied(0),
17 num_hierarchy_conflict_application_failures(0), 16 num_hierarchy_conflict_application_failures(0),
18 num_encryption_conflict_application_failures(0), 17 num_encryption_conflict_application_failures(0),
(...skipping 25 matching lines...) Expand all
44 43
45 std::string UpdateCounters::ToString() const { 44 std::string UpdateCounters::ToString() const {
46 std::string result; 45 std::string result;
47 std::unique_ptr<base::DictionaryValue> value = ToValue(); 46 std::unique_ptr<base::DictionaryValue> value = ToValue();
48 JSONStringValueSerializer serializer(&result); 47 JSONStringValueSerializer serializer(&result);
49 serializer.Serialize(*value); 48 serializer.Serialize(*value);
50 return result; 49 return result;
51 } 50 }
52 51
53 } // namespace syncer 52 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/cycle/sync_cycle_snapshot.cc ('k') | components/sync/engine/model_safe_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698