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

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: fix cros compile 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..c600ee9358e0e81eb8c2022e151e9b8e17c7164c 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(make_scoped_ptr(observer_));
}
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