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

Unified Diff: components/metrics/daily_event_unittest.cc

Issue 636363004: Make remaining parts of components/metrics use metrics namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: components/metrics/daily_event_unittest.cc
diff --git a/components/metrics/daily_event_unittest.cc b/components/metrics/daily_event_unittest.cc
index d15def116cd5391f4e37f450957909064ce2710e..331cc1b121c6d596b658ff2245cb41d62f8168d9 100644
--- a/components/metrics/daily_event_unittest.cc
+++ b/components/metrics/daily_event_unittest.cc
@@ -38,8 +38,7 @@ class DailyEventTest : public testing::Test {
DailyEventTest() : event_(&prefs_, kTestPrefName, kTestMetricName) {
DailyEvent::RegisterPref(prefs_.registry(), kTestPrefName);
observer_ = new TestDailyObserver();
- scoped_ptr<metrics::DailyEvent::Observer> p(observer_);
- event_.AddObserver(p.Pass());
+ event_.AddObserver(scoped_ptr<DailyEvent::Observer>(observer_));
Ilya Sherman 2014/10/23 21:57:05 Optional nit: Can this use make_scoped_ptr for eve
Alexei Svitkine (slow) 2014/10/24 14:48:42 Done.
}
protected:
« no previous file with comments | « components/metrics/cloned_install_detector.cc ('k') | components/metrics/gpu/gpu_metrics_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698