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

Side by Side Diff: chrome/browser/extensions/api/dial/dial_api.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extensions/api/dial/dial_api.h" 5 #include "chrome/browser/extensions/api/dial/dial_api.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 21 matching lines...) Expand all
32 const size_t kDialMaxDevices = 256; 32 const size_t kDialMaxDevices = 256;
33 33
34 } // namespace 34 } // namespace
35 35
36 namespace extensions { 36 namespace extensions {
37 37
38 namespace dial = api::dial; 38 namespace dial = api::dial;
39 39
40 DialAPI::DialAPI(Profile* profile) 40 DialAPI::DialAPI(Profile* profile)
41 : RefcountedKeyedService( 41 : RefcountedKeyedService(
42 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)), 42 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)),
43 profile_(profile) { 43 profile_(profile) {
44 EventRouter::Get(profile) 44 EventRouter::Get(profile)
45 ->RegisterObserver(this, dial::OnDeviceList::kEventName); 45 ->RegisterObserver(this, dial::OnDeviceList::kEventName);
46 } 46 }
47 47
48 DialAPI::~DialAPI() {} 48 DialAPI::~DialAPI() {}
49 49
50 DialRegistry* DialAPI::dial_registry() { 50 DialRegistry* DialAPI::dial_registry() {
51 DCHECK_CURRENTLY_ON(BrowserThread::IO); 51 DCHECK_CURRENTLY_ON(BrowserThread::IO);
52 if (!dial_registry_.get()) { 52 if (!dial_registry_.get()) {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 bool DialDiscoverNowFunction::Respond() { 168 bool DialDiscoverNowFunction::Respond() {
169 DCHECK_CURRENTLY_ON(BrowserThread::UI); 169 DCHECK_CURRENTLY_ON(BrowserThread::UI);
170 SetResult(base::MakeUnique<base::FundamentalValue>(result_)); 170 SetResult(base::MakeUnique<base::FundamentalValue>(result_));
171 return true; 171 return true;
172 } 172 }
173 173
174 } // namespace api 174 } // namespace api
175 175
176 } // namespace extensions 176 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698