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

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

Issue 720973002: Remove implicit conversions from scoped_refptr to T* in device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "device/bluetooth/bluetooth_adapter_win.h" 5 #include "device/bluetooth/bluetooth_adapter_win.h"
6 6
7 #include <hash_set> 7 #include <hash_set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 28 matching lines...) Expand all
39 : BluetoothAdapter(), 39 : BluetoothAdapter(),
40 init_callback_(init_callback), 40 init_callback_(init_callback),
41 initialized_(false), 41 initialized_(false),
42 powered_(false), 42 powered_(false),
43 discovery_status_(NOT_DISCOVERING), 43 discovery_status_(NOT_DISCOVERING),
44 num_discovery_listeners_(0), 44 num_discovery_listeners_(0),
45 weak_ptr_factory_(this) { 45 weak_ptr_factory_(this) {
46 } 46 }
47 47
48 BluetoothAdapterWin::~BluetoothAdapterWin() { 48 BluetoothAdapterWin::~BluetoothAdapterWin() {
49 if (task_manager_) { 49 if (task_manager_.get()) {
50 task_manager_->RemoveObserver(this); 50 task_manager_->RemoveObserver(this);
51 task_manager_->Shutdown(); 51 task_manager_->Shutdown();
52 } 52 }
53 } 53 }
54 54
55 void BluetoothAdapterWin::AddObserver(BluetoothAdapter::Observer* observer) { 55 void BluetoothAdapterWin::AddObserver(BluetoothAdapter::Observer* observer) {
56 DCHECK(observer); 56 DCHECK(observer);
57 observers_.AddObserver(observer); 57 observers_.AddObserver(observer);
58 } 58 }
59 59
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); 349 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size();
350 on_stop_discovery_callbacks_.clear(); 350 on_stop_discovery_callbacks_.clear();
351 return; 351 return;
352 } 352 }
353 353
354 discovery_status_ = DISCOVERY_STOPPING; 354 discovery_status_ = DISCOVERY_STOPPING;
355 task_manager_->PostStopDiscoveryTask(); 355 task_manager_->PostStopDiscoveryTask();
356 } 356 }
357 357
358 } // namespace device 358 } // namespace device
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698