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

Unified Diff: components/metrics/daily_event_unittest.cc

Issue 1906173002: Convert //components/metrics from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « components/metrics/daily_event.cc ('k') | components/metrics/data_use_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/daily_event_unittest.cc
diff --git a/components/metrics/daily_event_unittest.cc b/components/metrics/daily_event_unittest.cc
index 4adbaaf92be7dbaca13aabdde1393d8de1eb9fc7..6e32c285aa591643f5117c7b9d94644f409bd6cc 100644
--- a/components/metrics/daily_event_unittest.cc
+++ b/components/metrics/daily_event_unittest.cc
@@ -5,6 +5,7 @@
#include "components/metrics/daily_event.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -39,7 +40,7 @@ class DailyEventTest : public testing::Test {
DailyEventTest() : event_(&prefs_, kTestPrefName, kTestMetricName) {
DailyEvent::RegisterPref(prefs_.registry(), kTestPrefName);
observer_ = new TestDailyObserver();
- event_.AddObserver(make_scoped_ptr(observer_));
+ event_.AddObserver(base::WrapUnique(observer_));
}
protected:
« no previous file with comments | « components/metrics/daily_event.cc ('k') | components/metrics/data_use_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698