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

Unified Diff: chrome/browser/extensions/api/serial/serial_port_enumerator_win.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/serial/serial_port_enumerator_win.cc
diff --git a/chrome/browser/extensions/api/serial/serial_port_enumerator_win.cc b/chrome/browser/extensions/api/serial/serial_port_enumerator_win.cc
deleted file mode 100644
index 213ef438c5122c0d1dd73a250bad052cb37be443..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/serial/serial_port_enumerator_win.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/extensions/api/serial/serial_port_enumerator.h"
-
-#include <windows.h>
-
-#include "base/memory/scoped_ptr.h"
-#include "base/strings/string_util.h"
-#include "base/strings/stringprintf.h"
-#include "base/win/registry.h"
-
-namespace extensions {
-
-SerialPortEnumerator::StringSet
-SerialPortEnumerator::GenerateValidSerialPortNames() {
- StringSet name_set;
-
- base::win::RegistryValueIterator iter_key(HKEY_LOCAL_MACHINE,
- L"HARDWARE\\DEVICEMAP\\SERIALCOMM\\");
-
- for (; iter_key.Valid(); ++iter_key) {
- base::string16 str(iter_key.Value());
- std::string device_string(WideToASCII(str));
- name_set.insert(device_string);
- }
- return name_set;
-}
-
-} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/api/serial/serial_port_enumerator_unittest.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698