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

Side by Side Diff: chromeos/dbus/bluetooth_gatt_service_service_provider.cc

Issue 556833003: Fix minor issues about DBusThreadManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 "chromeos/dbus/bluetooth_gatt_service_service_provider.h" 5 #include "chromeos/dbus/bluetooth_gatt_service_service_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 BluetoothGattServiceServiceProvider::~BluetoothGattServiceServiceProvider() { 262 BluetoothGattServiceServiceProvider::~BluetoothGattServiceServiceProvider() {
263 } 263 }
264 264
265 // static 265 // static
266 BluetoothGattServiceServiceProvider* 266 BluetoothGattServiceServiceProvider*
267 BluetoothGattServiceServiceProvider::Create( 267 BluetoothGattServiceServiceProvider::Create(
268 dbus::Bus* bus, 268 dbus::Bus* bus,
269 const dbus::ObjectPath& object_path, 269 const dbus::ObjectPath& object_path,
270 const std::string& uuid, 270 const std::string& uuid,
271 const std::vector<dbus::ObjectPath>& includes) { 271 const std::vector<dbus::ObjectPath>& includes) {
272 if (!DBusThreadManager::IsUsingStub(DBusClientBundle::BLUETOOTH)) { 272 if (!DBusThreadManager::Get()->IsUsingStub(DBusClientBundle::BLUETOOTH)) {
273 return new BluetoothGattServiceServiceProviderImpl( 273 return new BluetoothGattServiceServiceProviderImpl(
274 bus, object_path, uuid, includes); 274 bus, object_path, uuid, includes);
275 } 275 }
276 return new FakeBluetoothGattServiceServiceProvider( 276 return new FakeBluetoothGattServiceServiceProvider(
277 object_path, uuid, includes); 277 object_path, uuid, includes);
278 } 278 }
279 279
280 } // namespace chromeos 280 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698