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

Unified Diff: components/storage_monitor/storage_monitor_mac.mm

Issue 2521063004: Replace ptr.reset with std::move in src/components (Closed)
Patch Set: Created 4 years, 1 month 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/safe_browsing_db/v4_update_protocol_manager.cc ('k') | components/update_client/action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ed0392bd24c08c697286e57704ec53e1669d1830..47d91355febafeedafb8fa4e8197980dc6d80f20 100644
--- a/components/storage_monitor/storage_monitor_mac.mm
+++ b/components/storage_monitor/storage_monitor_mac.mm
@@ -320,7 +320,7 @@ void EjectDisk(EjectDiskOptions* options) {
EjectDiskOptions* options = new EjectDiskOptions;
options->bsd_name = bsd_name;
options->callback = callback;
- options->disk.reset(disk.release());
+ options->disk = std::move(disk);
content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
base::Bind(EjectDisk, options));
}
« no previous file with comments | « components/safe_browsing_db/v4_update_protocol_manager.cc ('k') | components/update_client/action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698