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

Unified Diff: webrtc/media/devices/win32deviceinfo.cc

Issue 1715883002: Remove DeviceManager and DeviceInfo. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 9 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
« no previous file with comments | « webrtc/media/devices/mobiledevicemanager.cc ('k') | webrtc/media/devices/win32devicemanager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/devices/win32deviceinfo.cc
diff --git a/webrtc/media/devices/win32deviceinfo.cc b/webrtc/media/devices/win32deviceinfo.cc
deleted file mode 100644
index 6e5b5917338ad3e50f0273d4b1a1e3c297cf92f0..0000000000000000000000000000000000000000
--- a/webrtc/media/devices/win32deviceinfo.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#include "webrtc/media/devices/deviceinfo.h"
-
-namespace cricket {
-
-bool GetUsbId(const Device& device, std::string* usb_id) {
- // Both PID and VID are 4 characters.
- const int id_size = 4;
- const char vid[] = "vid_"; // Also contains '\0'.
- const size_t vid_location = device.id.find(vid);
- if (vid_location == std::string::npos ||
- vid_location + sizeof(vid) - 1 + id_size > device.id.size()) {
- return false;
- }
- const char pid[] = "pid_";
- const size_t pid_location = device.id.find(pid);
- if (pid_location == std::string::npos ||
- pid_location + sizeof(pid) - 1 + id_size > device.id.size()) {
- return false;
- }
- std::string id_vendor = device.id.substr(vid_location + sizeof(vid) - 1,
- id_size);
- std::string id_product = device.id.substr(pid_location + sizeof(pid) -1,
- id_size);
- usb_id->clear();
- usb_id->append(id_vendor);
- usb_id->append(":");
- usb_id->append(id_product);
- return true;
-}
-
-bool GetUsbVersion(const Device& device, std::string* usb_version) {
- return false;
-}
-
-} // namespace cricket
« no previous file with comments | « webrtc/media/devices/mobiledevicemanager.cc ('k') | webrtc/media/devices/win32devicemanager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698