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

Unified Diff: components/usb_service/usb_service.cc

Issue 236203019: Move UsbService to its own component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move usb_service component symbols into usb_service namespace Created 6 years, 8 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 | « components/usb_service/usb_service.h ('k') | components/usb_service/usb_service_export.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/usb_service/usb_service.cc
diff --git a/chrome/browser/usb/usb_service.cc b/components/usb_service/usb_service.cc
similarity index 95%
rename from chrome/browser/usb/usb_service.cc
rename to components/usb_service/usb_service.cc
index 591645743866e7113d937430a5fa4e69d43847e3..318caa189e802bad828bcbe802db81f7637e535a 100644
--- a/chrome/browser/usb/usb_service.cc
+++ b/components/usb_service/usb_service.cc
@@ -2,18 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/usb/usb_service.h"
+#include "components/usb_service/usb_service.h"
#include <set>
#include <vector>
#include "base/lazy_instance.h"
#include "base/stl_util.h"
-#include "chrome/browser/usb/usb_context.h"
-#include "chrome/browser/usb/usb_device.h"
+#include "components/usb_service/usb_context.h"
+#include "components/usb_service/usb_device.h"
#include "content/public/browser/browser_thread.h"
#include "third_party/libusb/src/libusb/libusb.h"
+namespace usb_service {
+
namespace {
base::LazyInstance<scoped_ptr<UsbService> >::Leaky g_usb_service_instance =
@@ -120,3 +122,5 @@ void UsbService::RefreshDevices() {
libusb_free_device_list(platform_devices, true);
}
+
+} // namespace usb_service
« no previous file with comments | « components/usb_service/usb_service.h ('k') | components/usb_service/usb_service_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698