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

Unified Diff: content/browser/device_monitor_udev.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 | « content/browser/BUILD.gn ('k') | content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_monitor_udev.cc
diff --git a/content/browser/device_monitor_udev.cc b/content/browser/device_monitor_udev.cc
index ddfe053eae2348217141ca34084346cc5a3455aa..6e2b4ec3b0acf71983a17ed37603331e901c9d97 100644
--- a/content/browser/device_monitor_udev.cc
+++ b/content/browser/device_monitor_udev.cc
@@ -6,13 +6,12 @@
#include "content/browser/device_monitor_udev.h"
-#include <libudev.h>
-
#include <string>
#include "base/system_monitor/system_monitor.h"
#include "content/browser/udev_linux.h"
#include "content/public/browser/browser_thread.h"
+#include "device/udev_linux/udev.h"
namespace {
@@ -72,7 +71,7 @@ void DeviceMonitorLinux::OnDevicesChanged(udev_device* device) {
base::SystemMonitor::DeviceType device_type =
base::SystemMonitor::DEVTYPE_UNKNOWN;
- std::string subsystem(udev_device_get_subsystem(device));
+ std::string subsystem(device::udev_device_get_subsystem(device));
for (size_t i = 0; i < arraysize(kSubsystemMap); ++i) {
if (subsystem == kSubsystemMap[i].subsystem) {
device_type = kSubsystemMap[i].device_type;
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698