diff options
author | jracle@logitech.com <jracle@logitech.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-02 01:20:31 +0000 |
---|---|---|
committer | jracle@logitech.com <jracle@logitech.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-02 01:20:31 +0000 |
commit | d0a4bdb1d2bbfc79ebf3107735044df44228a5fe (patch) | |
tree | 907df4db2099122a971e28d5125aad60c8bfc796 /device/hid/hid_connection_linux.cc | |
parent | d0064e45f03c84279cb6a4c7ef862ff6298d3037 (diff) | |
download | chromium_src-d0a4bdb1d2bbfc79ebf3107735044df44228a5fe.zip chromium_src-d0a4bdb1d2bbfc79ebf3107735044df44228a5fe.tar.gz chromium_src-d0a4bdb1d2bbfc79ebf3107735044df44228a5fe.tar.bz2 |
HID device connection now shared on Linux
Remove exclusive flags so that 2 apps can communicate with same device.
This is coherent with Windows and Mac implementation.
Note that a non-chrome app (e.g. desktop app on Windows) can open same
device.
BUG=358631
TBR=rockot@chromium.org
Review URL: https://codereview.chromium.org/213743009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261019 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/hid/hid_connection_linux.cc')
-rw-r--r-- | device/hid/hid_connection_linux.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/device/hid/hid_connection_linux.cc b/device/hid/hid_connection_linux.cc index 75c9e07..503a3c5 100644 --- a/device/hid/hid_connection_linux.cc +++ b/device/hid/hid_connection_linux.cc @@ -60,9 +60,7 @@ HidConnectionLinux::HidConnectionLinux(HidDeviceInfo device_info, int flags = base::File::FLAG_OPEN | base::File::FLAG_READ | - base::File::FLAG_WRITE | - base::File::FLAG_EXCLUSIVE_READ | - base::File::FLAG_EXCLUSIVE_WRITE; + base::File::FLAG_WRITE; base::File device_file(base::FilePath(dev_node), flags); if (!device_file.IsValid()) { |