diff options
author | agoode <agoode@chromium.org> | 2015-03-17 18:25:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-18 01:26:22 +0000 |
commit | df367dd86b9ad686d314f4664ae66674a1f700f0 (patch) | |
tree | 03a03c3014c7a9f216c9f512992406fa2ad25707 /components/storage_monitor | |
parent | 0c619881fcd09e4d17b70b11c353b3d5e5af144b (diff) | |
download | chromium_src-df367dd86b9ad686d314f4664ae66674a1f700f0.zip chromium_src-df367dd86b9ad686d314f4664ae66674a1f700f0.tar.gz chromium_src-df367dd86b9ad686d314f4664ae66674a1f700f0.tar.bz2 |
Introduce UdevDeviceGetSysattrValue, which is the same as
UdevDeviceGetPropertyValue but for sysattrs. Use this in places where
NULL is not an appropriate return value (such as assignment to
std::string).
Review URL: https://codereview.chromium.org/1018593002
Cr-Commit-Position: refs/heads/master@{#321043}
Diffstat (limited to 'components/storage_monitor')
-rw-r--r-- | components/storage_monitor/storage_monitor_linux.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/storage_monitor/storage_monitor_linux.cc b/components/storage_monitor/storage_monitor_linux.cc index 84c7dc4..162a4a2 100644 --- a/components/storage_monitor/storage_monitor_linux.cc +++ b/components/storage_monitor/storage_monitor_linux.cc @@ -99,8 +99,8 @@ class ScopedGetDeviceInfoResultRecorder { uint64 GetDeviceStorageSize(const base::FilePath& device_path, struct udev_device* device) { // sysfs provides the device size in units of 512-byte blocks. - const std::string partition_size = device::udev_device_get_sysattr_value( - device, kSizeSysAttr); + const std::string partition_size = + device::UdevDeviceGetSysattrValue(device, kSizeSysAttr); // Keep track of device size, to see how often this information is // unavailable. |