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

Unified Diff: chrome/browser/usb/web_usb_detector.cc

Issue 2146663002: Move //components/webusb/ to //chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix variable names Created 4 years, 5 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/usb/web_usb_detector.cc
diff --git a/components/webusb/webusb_detector.cc b/chrome/browser/usb/web_usb_detector.cc
similarity index 90%
rename from components/webusb/webusb_detector.cc
rename to chrome/browser/usb/web_usb_detector.cc
index 2ac3522c2c7a1cff6fb60ef5ce0764349ba95dd5..fef0368c408a7fc88f0ea8f139d9216df04d270f 100644
--- a/components/webusb/webusb_detector.cc
+++ b/chrome/browser/usb/web_usb_detector.cc
@@ -2,15 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/webusb/webusb_detector.h"
+#include "chrome/browser/usb/web_usb_detector.h"
-#include "components/webusb/webusb_browser_client.h"
+#include "chrome/browser/usb/web_usb_browser_client.h"
#include "device/core/device_client.h"
#include "device/usb/usb_device.h"
#include "device/usb/usb_ids.h"
-namespace webusb {
-
WebUsbDetector::WebUsbDetector(WebUsbBrowserClient* webusb_browser_client)
: webusb_browser_client_(webusb_browser_client), observer_(this) {
Initialize();
@@ -52,5 +50,3 @@ void WebUsbDetector::OnDeviceRemoved(scoped_refptr<device::UsbDevice> device) {
std::string notification_id = device->guid();
webusb_browser_client_->OnDeviceRemoved(notification_id);
}
-
-} // namespace webusb

Powered by Google App Engine
This is Rietveld 408576698