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

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_gatt_service_client.cc

Issue 1984493002: Address property removals of GATT service and characteristic interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_client.cc ('k') | 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 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/dbus/fake_bluetooth_gatt_service_client.h" 5 #include "device/bluetooth/dbus/fake_bluetooth_gatt_service_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 if (!IsHeartRateVisible()) { 170 if (!IsHeartRateVisible()) {
171 VLOG(2) << "Heart Rate service not visible. Not exposing characteristics."; 171 VLOG(2) << "Heart Rate service not visible. Not exposing characteristics.";
172 return; 172 return;
173 } 173 }
174 FakeBluetoothGattCharacteristicClient* char_client = 174 FakeBluetoothGattCharacteristicClient* char_client =
175 static_cast<FakeBluetoothGattCharacteristicClient*>( 175 static_cast<FakeBluetoothGattCharacteristicClient*>(
176 bluez::BluezDBusManager::Get() 176 bluez::BluezDBusManager::Get()
177 ->GetBluetoothGattCharacteristicClient()); 177 ->GetBluetoothGattCharacteristicClient());
178 char_client->ExposeHeartRateCharacteristics( 178 char_client->ExposeHeartRateCharacteristics(
179 dbus::ObjectPath(heart_rate_service_path_)); 179 dbus::ObjectPath(heart_rate_service_path_));
180
181 std::vector<dbus::ObjectPath> char_paths;
182 char_paths.push_back(char_client->GetHeartRateMeasurementPath());
183 char_paths.push_back(char_client->GetBodySensorLocationPath());
184 char_paths.push_back(char_client->GetHeartRateControlPointPath());
185
186 heart_rate_service_properties_->characteristics.ReplaceValue(char_paths);
187 } 180 }
188 181
189 } // namespace bluez 182 } // namespace bluez
OLDNEW
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698