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

Unified Diff: components/storage_monitor/test_storage_monitor.cc

Issue 1884743002: Convert a few components from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint 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
Index: components/storage_monitor/test_storage_monitor.cc
diff --git a/components/storage_monitor/test_storage_monitor.cc b/components/storage_monitor/test_storage_monitor.cc
index a7b52f41f4a873104ca456725b9b4bc28b5e70c2..45ed4389b39e21c8a3a10957f43f398c6ae326df 100644
--- a/components/storage_monitor/test_storage_monitor.cc
+++ b/components/storage_monitor/test_storage_monitor.cc
@@ -32,7 +32,7 @@ TestStorageMonitor::~TestStorageMonitor() {}
// static
TestStorageMonitor* TestStorageMonitor::CreateAndInstall() {
TestStorageMonitor* monitor = new TestStorageMonitor();
- scoped_ptr<StorageMonitor> pass_monitor(monitor);
+ std::unique_ptr<StorageMonitor> pass_monitor(monitor);
monitor->Init();
monitor->MarkInitialized();
@@ -50,7 +50,7 @@ TestStorageMonitor* TestStorageMonitor::CreateForBrowserTests() {
monitor->Init();
monitor->MarkInitialized();
- scoped_ptr<StorageMonitor> pass_monitor(monitor);
+ std::unique_ptr<StorageMonitor> pass_monitor(monitor);
StorageMonitor::SetStorageMonitorForTesting(std::move(pass_monitor));
return monitor;
« no previous file with comments | « components/storage_monitor/test_storage_monitor.h ('k') | components/storage_monitor/test_volume_mount_watcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698