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

Unified Diff: device/udev_linux/udev.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 | « device/udev_linux/udev.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/udev_linux/udev.cc
diff --git a/device/udev_linux/udev.cc b/device/udev_linux/udev.cc
index ae23bef9a36a90220ab9ba6f06064fc71811416b..a3fc0e941b2b4bab43dcfee1d46c279403faa90e 100644
--- a/device/udev_linux/udev.cc
+++ b/device/udev_linux/udev.cc
@@ -146,4 +146,10 @@ void udev_unref(udev* udev) {
UdevLoader::Get()->udev_unref(udev);
}
+std::string UdevDeviceGetPropertyValue(udev_device* udev_device,
+ const char* key) {
+ const char* value = device::udev_device_get_property_value(udev_device, key);
+ return value ? value : std::string();
+}
+
} // namespace device
« no previous file with comments | « device/udev_linux/udev.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698