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

Unified Diff: device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.cc

Issue 1898643002: Refactor device::BluetoothGattXXX classes to split into remote/local. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.cc
diff --git a/device/bluetooth/dbus/dbus_bluez_manager_wrapper_stub_linux.cc b/device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.cc
similarity index 30%
copy from device/bluetooth/dbus/dbus_bluez_manager_wrapper_stub_linux.cc
copy to device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.cc
index 18c2bfe676c2892cad9046c2e02bdc537158b37f..950d9d9bfea2724ca73b9f0705d75911bbdbb3d8 100644
--- a/device/bluetooth/dbus/dbus_bluez_manager_wrapper_stub_linux.cc
+++ b/device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.cc
@@ -2,16 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "device/bluetooth/dbus/dbus_bluez_manager_wrapper_linux.h"
+#include "device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.h"
+
+#include <string>
+
+#include "base/logging.h"
namespace bluez {
-// Stub implementation for targets that don't use DBus.
-// static
-void DBusBluezManagerWrapperLinux::Initialize() {}
+BluetoothLocalGattDescriptorBlueZ::BluetoothLocalGattDescriptorBlueZ(
+ const dbus::ObjectPath& object_path)
+ : BluetoothGattDescriptorBlueZ(object_path), weak_ptr_factory_(this) {
+ VLOG(1) << "Creating local GATT descriptor with identifier: "
+ << GetIdentifier();
+}
-// Stub implementation for targets that don't use DBus.
-// static
-void DBusBluezManagerWrapperLinux::Shutdown() {}
+BluetoothLocalGattDescriptorBlueZ::~BluetoothLocalGattDescriptorBlueZ() {}
} // namespace bluez

Powered by Google App Engine
This is Rietveld 408576698