| Index: components/sync/engine_impl/syncer_unittest.cc
|
| diff --git a/components/sync/engine_impl/syncer_unittest.cc b/components/sync/engine_impl/syncer_unittest.cc
|
| index 05638f5f72d84eeec120c392003a0c829308a8cc..cac588f6dcdc0c8c0de08c1919b56fdfcff4bf83 100644
|
| --- a/components/sync/engine_impl/syncer_unittest.cc
|
| +++ b/components/sync/engine_impl/syncer_unittest.cc
|
| @@ -113,8 +113,9 @@ class TypeDebugInfoCache : public TypeDebugInfoObserver {
|
| const CommitCounters& counters) override;
|
| void OnUpdateCountersUpdated(syncer::ModelType type,
|
| const UpdateCounters& counters) override;
|
| - void OnStatusCountersUpdated(syncer::ModelType type,
|
| - const StatusCounters& counters) override;
|
| + void OnStatusCountersUpdated(
|
| + syncer::ModelType type,
|
| + std::unique_ptr<StatusCounters> counters) override;
|
|
|
| private:
|
| std::map<ModelType, CommitCounters> commit_counters_map_;
|
| @@ -173,8 +174,8 @@ void TypeDebugInfoCache::OnUpdateCountersUpdated(
|
|
|
| void TypeDebugInfoCache::OnStatusCountersUpdated(
|
| syncer::ModelType type,
|
| - const StatusCounters& counters) {
|
| - status_counters_map_[type] = counters;
|
| + std::unique_ptr<StatusCounters> counters) {
|
| + status_counters_map_[type] = *counters;
|
| }
|
|
|
| } // namespace
|
|
|