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

Unified Diff: components/storage_monitor/storage_monitor_win.h

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_win.h
diff --git a/components/storage_monitor/storage_monitor_win.h b/components/storage_monitor/storage_monitor_win.h
index a57133d64da5e9bc8a1111c09c879113f041640e..2d74f2c9b8d5d9c5c065c1dc3db701b25294ff51 100644
--- a/components/storage_monitor/storage_monitor_win.h
+++ b/components/storage_monitor/storage_monitor_win.h
@@ -5,9 +5,10 @@
#ifndef COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_
#define COMPONENTS_STORAGE_MONITOR_STORAGE_MONITOR_WIN_H_
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "components/storage_monitor/storage_monitor.h"
namespace base {
@@ -77,11 +78,11 @@ class StorageMonitorWin : public StorageMonitor {
ULONG shell_change_notify_id_;
// The volume mount point watcher, used to manage the mounted devices.
- scoped_ptr<VolumeMountWatcherWin> volume_mount_watcher_;
+ std::unique_ptr<VolumeMountWatcherWin> volume_mount_watcher_;
// The portable device watcher, used to manage media transfer protocol
// devices.
- scoped_ptr<PortableDeviceWatcherWin> portable_device_watcher_;
+ std::unique_ptr<PortableDeviceWatcherWin> portable_device_watcher_;
DISALLOW_COPY_AND_ASSIGN(StorageMonitorWin);
};
« no previous file with comments | « components/storage_monitor/storage_monitor_mac_unittest.mm ('k') | components/storage_monitor/storage_monitor_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698