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: |