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

Unified Diff: chrome/browser/extensions/api/serial/serial_port_enumerator_win.cc

Issue 11474005: Current Serial port pattern in source cannot find proper port name. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/serial/serial_port_enumerator_win.cc
===================================================================
--- chrome/browser/extensions/api/serial/serial_port_enumerator_win.cc (revision 172013)
+++ chrome/browser/extensions/api/serial/serial_port_enumerator_win.cc (working copy)
@@ -44,7 +44,7 @@
// to refactor this interface to make it more platform-independent.
for (int port_number = 0; port_number < max_port_number; ++port_number) {
string16 device_string16;
- device_string16 = base::StringPrintf(L"\\\\.\\COM%d", port_number);
+ device_string16 = base::StringPrintf(L"COM%d", port_number);
if (PassesCommConfigTest(device_string16)) {
// Keep looking for new ports as long as we're finding them.
int new_max_port_number = (port_number + 1) * 2;
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698