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

Side by Side Diff: device/bluetooth/bluetooth_socket_thread.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 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 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 "device/bluetooth/bluetooth_socket_thread.h" 5 #include "device/bluetooth/bluetooth_socket_thread.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/message_loop/message_loop.h"
8 #include "base/sequenced_task_runner.h" 9 #include "base/sequenced_task_runner.h"
9 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
10 11
11 namespace device { 12 namespace device {
12 13
13 base::LazyInstance<scoped_refptr<BluetoothSocketThread>>::DestructorAtExit 14 base::LazyInstance<scoped_refptr<BluetoothSocketThread>>::DestructorAtExit
14 g_instance = LAZY_INSTANCE_INITIALIZER; 15 g_instance = LAZY_INSTANCE_INITIALIZER;
15 16
16 // static 17 // static
17 scoped_refptr<BluetoothSocketThread> BluetoothSocketThread::Get() { 18 scoped_refptr<BluetoothSocketThread> BluetoothSocketThread::Get() {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 scoped_refptr<base::SequencedTaskRunner> BluetoothSocketThread::task_runner() 65 scoped_refptr<base::SequencedTaskRunner> BluetoothSocketThread::task_runner()
65 const { 66 const {
66 DCHECK(active_socket_count_ > 0); 67 DCHECK(active_socket_count_ > 0);
67 DCHECK(thread_); 68 DCHECK(thread_);
68 DCHECK(task_runner_.get()); 69 DCHECK(task_runner_.get());
69 70
70 return task_runner_; 71 return task_runner_;
71 } 72 }
72 73
73 } // namespace device 74 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698