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

Unified Diff: components/usb_service/usb_service_impl.cc

Issue 420563008: [usb_gadget p12] Basic tests of usb_service using the USB test gadget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | device/device_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/usb_service/usb_service_impl.cc
diff --git a/components/usb_service/usb_service_impl.cc b/components/usb_service/usb_service_impl.cc
index 88aa98f676d5cfe7b5b05b6a5c33228e941132fe..a77749e7d4da3a245481aacbeb296bfe4e98ecaf 100644
--- a/components/usb_service/usb_service_impl.cc
+++ b/components/usb_service/usb_service_impl.cc
@@ -154,7 +154,6 @@ void UsbServiceImpl::RefreshDevices() {
// static
UsbService* UsbService::GetInstance() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
UsbService* instance = g_usb_service_instance.Get().get();
if (!instance) {
PlatformUsbContext context = NULL;
@@ -175,7 +174,6 @@ UsbService* UsbService::GetInstance() {
// static
void UsbService::SetInstanceForTest(UsbService* instance) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
g_usb_service_instance.Get().reset(instance);
}
« no previous file with comments | « no previous file | device/device_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698