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 |