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

Unified Diff: components/sync/engine_impl/syncer_unittest.cc

Issue 2374913002: [USS] Show USS counters in about:sync page (Closed)
Patch Set: For IOS Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698