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

Unified Diff: components/storage_monitor/udev_util_linux.cc

Issue 674703002: Linux: Dynamically load libudev. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scoped_udev
Patch Set: rebase to head, which includes third_party/libudev already Created 6 years, 1 month 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/storage_monitor_linux.cc ('k') | content/browser/BUILD.gn » ('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 154f11cfe62ac7fcd67ef543fd580c318daed448..00019c17278122ad46b7012a3958830804060430 100644
--- a/components/storage_monitor/udev_util_linux.cc
+++ b/components/storage_monitor/udev_util_linux.cc
@@ -11,17 +11,17 @@ namespace storage_monitor {
std::string GetUdevDevicePropertyValue(udev_device* udev_device,
const char* key) {
- const char* value = udev_device_get_property_value(udev_device, 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) {
- device::ScopedUdevPtr udev(udev_new());
+ device::ScopedUdevPtr udev(device::udev_new());
if (!udev.get())
return false;
- device::ScopedUdevDevicePtr device(udev_device_new_from_syspath(
+ device::ScopedUdevDevicePtr device(device::udev_device_new_from_syspath(
udev.get(), device_path.value().c_str()));
if (!device.get())
return false;
« no previous file with comments | « components/storage_monitor/storage_monitor_linux.cc ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698