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

Unified Diff: components/storage_monitor/storage_monitor_linux.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/storage_monitor_linux.cc
diff --git a/components/storage_monitor/storage_monitor_linux.cc b/components/storage_monitor/storage_monitor_linux.cc
index a68e3e8e6f89d8d4b9c46f421f81c6c064e2bf8a..b08986723c2980260f36b4f7d819eba19f6b0a15 100644
--- a/components/storage_monitor/storage_monitor_linux.cc
+++ b/components/storage_monitor/storage_monitor_linux.cc
@@ -120,12 +120,12 @@ uint64_t GetDeviceStorageSize(const base::FilePath& device_path,
}
// Gets the device information using udev library.
-scoped_ptr<StorageInfo> GetDeviceInfo(const base::FilePath& device_path,
- const base::FilePath& mount_point) {
+std::unique_ptr<StorageInfo> GetDeviceInfo(const base::FilePath& device_path,
+ const base::FilePath& mount_point) {
DCHECK_CURRENTLY_ON(BrowserThread::FILE);
DCHECK(!device_path.empty());
- scoped_ptr<StorageInfo> storage_info;
+ std::unique_ptr<StorageInfo> storage_info;
ScopedGetDeviceInfoResultRecorder results_recorder;
@@ -484,8 +484,9 @@ void StorageMonitorLinux::HandleDeviceMountedMultipleTimes(
mount_info_map_.find(other_mount_point)->second;
}
-void StorageMonitorLinux::AddNewMount(const base::FilePath& mount_device,
- scoped_ptr<StorageInfo> storage_info) {
+void StorageMonitorLinux::AddNewMount(
+ const base::FilePath& mount_device,
+ std::unique_ptr<StorageInfo> storage_info) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (!storage_info)
« no previous file with comments | « components/storage_monitor/storage_monitor_linux.h ('k') | components/storage_monitor/storage_monitor_linux_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698