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

Unified Diff: components/storage_monitor/storage_monitor_mac.mm

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/storage_monitor_mac.mm
diff --git a/components/storage_monitor/storage_monitor_mac.mm b/components/storage_monitor/storage_monitor_mac.mm
index 1ae2c832f9699fc466b8cb68c6ffd35870de2783..7a658fb211b6bec42d7080044c79fdc69a4062c5 100644
--- a/components/storage_monitor/storage_monitor_mac.mm
+++ b/components/storage_monitor/storage_monitor_mac.mm
@@ -135,7 +135,7 @@ struct EjectDiskOptions {
void PostEjectCallback(DADiskRef disk,
DADissenterRef dissenter,
void* context) {
- scoped_ptr<EjectDiskOptions> options_deleter(
+ std::unique_ptr<EjectDiskOptions> options_deleter(
static_cast<EjectDiskOptions*>(context));
if (dissenter) {
options_deleter->callback.Run(StorageMonitor::EJECT_IN_USE);
@@ -148,7 +148,7 @@ void PostEjectCallback(DADiskRef disk,
void PostUnmountCallback(DADiskRef disk,
DADissenterRef dissenter,
void* context) {
- scoped_ptr<EjectDiskOptions> options_deleter(
+ std::unique_ptr<EjectDiskOptions> options_deleter(
static_cast<EjectDiskOptions*>(context));
if (dissenter) {
options_deleter->callback.Run(StorageMonitor::EJECT_IN_USE);
« no previous file with comments | « components/storage_monitor/storage_monitor_mac.h ('k') | components/storage_monitor/storage_monitor_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698