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

Unified Diff: components/storage_monitor/portable_device_watcher_win.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/portable_device_watcher_win.cc
diff --git a/components/storage_monitor/portable_device_watcher_win.cc b/components/storage_monitor/portable_device_watcher_win.cc
index b57f80a4aaa0975e7041c0e1fabf011865bcf317..bd94d8d5f88003982a6b14bca315b5b8ca7e773a 100644
--- a/components/storage_monitor/portable_device_watcher_win.cc
+++ b/components/storage_monitor/portable_device_watcher_win.cc
@@ -415,7 +415,7 @@ bool EnumerateAttachedDevicesOnBlockingThread(
if (FAILED(hr))
return false;
- scoped_ptr<base::char16*[]> pnp_device_ids(
+ std::unique_ptr<base::char16*[]> pnp_device_ids(
new base::char16*[pnp_device_count]);
hr = portable_device_mgr->GetDevices(pnp_device_ids.get(), &pnp_device_count);
if (FAILED(hr))

Powered by Google App Engine
This is Rietveld 408576698