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

Unified Diff: components/storage_monitor/udev_util_linux.cc

Issue 982883004: Move GetUdevDevicePropertyValue from components/storage_monitor to device/udev_linux and rename to … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert incorrect change in chromeos Created 5 years, 10 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
« no previous file with comments | « components/storage_monitor/udev_util_linux.h ('k') | device/udev_linux/udev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/storage_monitor/udev_util_linux.cc
diff --git a/components/storage_monitor/udev_util_linux.cc b/components/storage_monitor/udev_util_linux.cc
index 00019c17278122ad46b7012a3958830804060430..e0a5a8f7d1d032fa0352954f40e5285cd3e13ca6 100644
--- a/components/storage_monitor/udev_util_linux.cc
+++ b/components/storage_monitor/udev_util_linux.cc
@@ -9,12 +9,6 @@
namespace storage_monitor {
-std::string GetUdevDevicePropertyValue(udev_device* udev_device,
- const char* key) {
- const char* value = device::udev_device_get_property_value(udev_device, key);
- return value ? value : std::string();
-}
-
bool GetUdevDevicePropertyValueByPath(const base::FilePath& device_path,
const char* key,
std::string* result) {
@@ -25,7 +19,7 @@ bool GetUdevDevicePropertyValueByPath(const base::FilePath& device_path,
udev.get(), device_path.value().c_str()));
if (!device.get())
return false;
- *result = GetUdevDevicePropertyValue(device.get(), key);
+ *result = device::UdevDeviceGetPropertyValue(device.get(), key);
return true;
}
« no previous file with comments | « components/storage_monitor/udev_util_linux.h ('k') | device/udev_linux/udev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698