| OLD | NEW |
| 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/sessions/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" | 8 #include "base/values.h" |
| 9 | 9 |
| 10 namespace syncer { | 10 namespace syncer { |
| 11 | 11 |
| 12 UpdateCounters::UpdateCounters() | 12 UpdateCounters::UpdateCounters() |
| 13 : num_updates_received(0), | 13 : num_updates_received(0), |
| 14 num_reflected_updates_received(0), | 14 num_reflected_updates_received(0), |
| 15 num_tombstone_updates_received(0), | 15 num_tombstone_updates_received(0), |
| (...skipping 28 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 std::string UpdateCounters::ToString() const { | 45 std::string UpdateCounters::ToString() const { |
| 46 std::string result; | 46 std::string result; |
| 47 std::unique_ptr<base::DictionaryValue> value = ToValue(); | 47 std::unique_ptr<base::DictionaryValue> value = ToValue(); |
| 48 JSONStringValueSerializer serializer(&result); | 48 JSONStringValueSerializer serializer(&result); |
| 49 serializer.Serialize(*value); | 49 serializer.Serialize(*value); |
| 50 return result; | 50 return result; |
| 51 } | 51 } |
| 52 | 52 |
| 53 } // namespace syncer | 53 } // namespace syncer |
| OLD | NEW |