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

Side by Side Diff: chrome/browser/extensions/api/serial/serial_connection_posix.cc

Issue 158063002: Use udev for serial device enumeration on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: -___- Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "chrome/browser/extensions/api/serial/serial_connection.h" 5 #include "chrome/browser/extensions/api/serial/serial_connection.h"
6 6
7 #include <sys/ioctl.h> 7 #include <sys/ioctl.h>
8 #include <termios.h> 8 #include <termios.h>
9 9
10 #if defined(OS_LINUX) 10 #if defined(OS_LINUX)
11 #include <linux/serial.h> 11 #include <linux/serial.h>
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 info->cts_flow_control.reset(new bool((config.c_cflag & CRTSCTS) != 0)); 274 info->cts_flow_control.reset(new bool((config.c_cflag & CRTSCTS) != 0));
275 return true; 275 return true;
276 } 276 }
277 277
278 std::string SerialConnection::MaybeFixUpPortName( 278 std::string SerialConnection::MaybeFixUpPortName(
279 const std::string &port_name) { 279 const std::string &port_name) {
280 return port_name; 280 return port_name;
281 } 281 }
282 282
283 } // namespace extensions 283 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698