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

Side by Side Diff: content/browser/device_monitor_udev.cc

Issue 12374068: Make it possible to disable udev in linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unbreak mac Created 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // libudev is used for monitoring device changes. 5 // libudev is used for monitoring device changes.
6 6
7 #include "content/browser/device_monitor_linux.h" 7 #include "content/browser/device_monitor_udev.h"
8 8
9 #include <libudev.h> 9 #include <libudev.h>
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/system_monitor/system_monitor.h" 13 #include "base/system_monitor/system_monitor.h"
14 #include "content/browser/udev_linux.h" 14 #include "content/browser/udev_linux.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 16
17 namespace { 17 namespace {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 device_type = kSubsystemMap[i].device_type; 78 device_type = kSubsystemMap[i].device_type;
79 break; 79 break;
80 } 80 }
81 } 81 }
82 DCHECK_NE(device_type, base::SystemMonitor::DEVTYPE_UNKNOWN); 82 DCHECK_NE(device_type, base::SystemMonitor::DEVTYPE_UNKNOWN);
83 83
84 base::SystemMonitor::Get()->ProcessDevicesChanged(device_type); 84 base::SystemMonitor::Get()->ProcessDevicesChanged(device_type);
85 } 85 }
86 86
87 } // namespace content 87 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/device_monitor_udev.h ('k') | content/browser/gamepad/gamepad_platform_data_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698