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

Unified Diff: chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc

Issue 16041004: Cleanup: Remove ScopedGenericObj usage in chrome/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 7 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: chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc
===================================================================
--- chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc (revision 202209)
+++ chrome/browser/extensions/api/system_info_storage/storage_info_provider_linux.cc (working copy)
@@ -11,6 +11,7 @@
using api::experimental_system_info_storage::StorageUnitInfo;
using api::experimental_system_info_storage::ParseStorageUnitType;
+using chrome::GetUdevDevicePropertyValue;
using chrome::ScopedUdevDeviceObject;
namespace {
@@ -84,12 +85,12 @@
// Create a udev device from a block device number.
ScopedUdevDeviceObject device(udev_device_new_from_devnum(
- udev_context_, 'b', stat_info.st_dev));
+ udev_context_.get(), 'b', stat_info.st_dev));
if (!device)
return false;
- if (GetUdevDevicePropertyValue(device, "ID_BUS") == "usb") {
+ if (GetUdevDevicePropertyValue(device.get(), "ID_BUS") == "usb") {
*type = systeminfo::kStorageTypeRemovable;
- } else if (GetUdevDevicePropertyValue(device, "ID_TYPE") == "disk") {
+ } else if (GetUdevDevicePropertyValue(device.get(), "ID_TYPE") == "disk") {
*type = systeminfo::kStorageTypeFixed;
} else {
*type = systeminfo::kStorageTypeUnknown;

Powered by Google App Engine
This is Rietveld 408576698