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

Unified Diff: components/metrics/cloned_install_detector_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 | « no previous file | components/metrics/daily_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/cloned_install_detector_unittest.cc
diff --git a/components/metrics/cloned_install_detector_unittest.cc b/components/metrics/cloned_install_detector_unittest.cc
index 91b24e8bf5735723e384886b592154c2d5e93f62..92625996ac5c8c5f0c979188f7423ddc0f7528a6 100644
--- a/components/metrics/cloned_install_detector_unittest.cc
+++ b/components/metrics/cloned_install_detector_unittest.cc
@@ -27,7 +27,7 @@ TEST(ClonedInstallDetectorTest, SaveId) {
TestingPrefServiceSimple prefs;
ClonedInstallDetector::RegisterPrefs(prefs.registry());
- scoped_ptr<ClonedInstallDetector> detector(
+ std::unique_ptr<ClonedInstallDetector> detector(
new ClonedInstallDetector(MachineIdProvider::CreateInstance()));
detector->SaveMachineId(&prefs, kTestRawId);
@@ -42,7 +42,7 @@ TEST(ClonedInstallDetectorTest, DetectClone) {
// Save a machine id that will cause a clone to be detected.
prefs.SetInteger(prefs::kMetricsMachineId, kTestHashedId + 1);
- scoped_ptr<ClonedInstallDetector> detector(
+ std::unique_ptr<ClonedInstallDetector> detector(
new ClonedInstallDetector(MachineIdProvider::CreateInstance()));
detector->SaveMachineId(&prefs, kTestRawId);
« no previous file with comments | « no previous file | components/metrics/daily_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698