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

Side by Side Diff: chrome/browser/chrome_device_client.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_device_client.h" 5 #include "chrome/browser/chrome_device_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 #include "device/hid/hid_service.h" 10 #include "device/hid/hid_service.h"
11 #include "device/usb/usb_service.h" 11 #include "device/usb/usb_service.h"
12 12
13 using content::BrowserThread; 13 using content::BrowserThread;
14 14
15 ChromeDeviceClient::ChromeDeviceClient() {} 15 ChromeDeviceClient::ChromeDeviceClient() {}
16 16
17 ChromeDeviceClient::~ChromeDeviceClient() {} 17 ChromeDeviceClient::~ChromeDeviceClient() {}
18 18
19 device::UsbService* ChromeDeviceClient::GetUsbService() { 19 device::UsbService* ChromeDeviceClient::GetUsbService() {
20 DCHECK_CURRENTLY_ON(BrowserThread::UI); 20 DCHECK_CURRENTLY_ON(BrowserThread::UI);
21 if (!usb_service_) { 21 if (!usb_service_) {
22 usb_service_ = device::UsbService::Create( 22 usb_service_ = device::UsbService::Create(
23 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); 23 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE));
24 } 24 }
25 return usb_service_.get(); 25 return usb_service_.get();
26 } 26 }
27 27
28 device::HidService* ChromeDeviceClient::GetHidService() { 28 device::HidService* ChromeDeviceClient::GetHidService() {
29 DCHECK_CURRENTLY_ON(BrowserThread::UI); 29 DCHECK_CURRENTLY_ON(BrowserThread::UI);
30 #if !defined(OS_ANDROID) 30 #if !defined(OS_ANDROID)
31 if (!hid_service_) { 31 if (!hid_service_) {
32 hid_service_ = device::HidService::Create( 32 hid_service_ = device::HidService::Create(
33 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); 33 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE));
34 } 34 }
35 #endif 35 #endif
36 return hid_service_.get(); 36 return hid_service_.get();
37 } 37 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | chrome/browser/chromeos/chrome_browser_main_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698