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

Unified Diff: extensions/browser/api/usb/usb_device_resource.cc

Issue 268713013: Move chrome.usb to //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 7 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 | « extensions/browser/api/usb/usb_device_resource.h ('k') | extensions/browser/api/usb/usb_manual_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/usb/usb_device_resource.cc
diff --git a/chrome/browser/extensions/api/usb/usb_device_resource.cc b/extensions/browser/api/usb/usb_device_resource.cc
similarity index 88%
rename from chrome/browser/extensions/api/usb/usb_device_resource.cc
rename to extensions/browser/api/usb/usb_device_resource.cc
index 633635df9387e4b39f0e93c1b80d4bb107691789..c7d09551211384728d9ac13f2f16ad19b075ec99 100644
--- a/chrome/browser/extensions/api/usb/usb_device_resource.cc
+++ b/extensions/browser/api/usb/usb_device_resource.cc
@@ -2,7 +2,7 @@
// 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/usb/usb_device_resource.h"
+#include "extensions/browser/api/usb/usb_device_resource.h"
#include <string>
#include <vector>
@@ -10,10 +10,10 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/synchronization/lock.h"
-#include "chrome/common/extensions/api/usb.h"
#include "components/usb_service/usb_device_handle.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/browser/api/api_resource.h"
+#include "extensions/common/api/usb.h"
using content::BrowserThread;
using usb_service::UsbDeviceHandle;
@@ -33,7 +33,8 @@ ApiResourceManager<UsbDeviceResource>::GetFactoryInstance() {
UsbDeviceResource::UsbDeviceResource(const std::string& owner_extension_id,
scoped_refptr<UsbDeviceHandle> device)
- : ApiResource(owner_extension_id), device_(device) {}
+ : ApiResource(owner_extension_id), device_(device) {
+}
UsbDeviceResource::~UsbDeviceResource() {
BrowserThread::PostTask(BrowserThread::FILE,
« no previous file with comments | « extensions/browser/api/usb/usb_device_resource.h ('k') | extensions/browser/api/usb/usb_manual_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698