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

Unified Diff: device/bluetooth/dbus/fake_bluetooth_device_client.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/dbus/bluetooth_device_client.cc ('k') | extensions/browser/api/alarms/alarms_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/dbus/fake_bluetooth_device_client.cc
diff --git a/device/bluetooth/dbus/fake_bluetooth_device_client.cc b/device/bluetooth/dbus/fake_bluetooth_device_client.cc
index 5aaaf085333a4006349fc1bfbc40a5c722b7a1f4..cf90fa7c9ab7feeb1e0fa9d773a2aaf7ac47daa1 100644
--- a/device/bluetooth/dbus/fake_bluetooth_device_client.cc
+++ b/device/bluetooth/dbus/fake_bluetooth_device_client.cc
@@ -104,10 +104,10 @@ BluetoothDeviceClient::ServiceRecordList CreateFakeServiceRecords() {
std::unique_ptr<BluetoothServiceRecordBlueZ> record1 =
base::MakeUnique<BluetoothServiceRecordBlueZ>();
// ID 0 = handle.
- record1->AddRecordEntry(0x0, BluetoothServiceAttributeValueBlueZ(
- BluetoothServiceAttributeValueBlueZ::UINT, 4,
- base::MakeUnique<base::FundamentalValue>(
- static_cast<int32_t>(0x1337))));
+ record1->AddRecordEntry(
+ 0x0, BluetoothServiceAttributeValueBlueZ(
+ BluetoothServiceAttributeValueBlueZ::UINT, 4,
+ base::MakeUnique<base::Value>(static_cast<int32_t>(0x1337))));
// ID 1 = service class id list.
std::unique_ptr<BluetoothServiceAttributeValueBlueZ::Sequence> class_id_list =
base::MakeUnique<BluetoothServiceAttributeValueBlueZ::Sequence>();
@@ -120,10 +120,11 @@ BluetoothDeviceClient::ServiceRecordList CreateFakeServiceRecords() {
std::unique_ptr<BluetoothServiceRecordBlueZ> record2 =
base::MakeUnique<BluetoothServiceRecordBlueZ>();
// ID 0 = handle.
- record2->AddRecordEntry(0x0, BluetoothServiceAttributeValueBlueZ(
- BluetoothServiceAttributeValueBlueZ::UINT, 4,
- base::MakeUnique<base::FundamentalValue>(
- static_cast<int32_t>(0xffffffff))));
+ record2->AddRecordEntry(
+ 0x0,
+ BluetoothServiceAttributeValueBlueZ(
+ BluetoothServiceAttributeValueBlueZ::UINT, 4,
+ base::MakeUnique<base::Value>(static_cast<int32_t>(0xffffffff))));
records.emplace_back(*record2);
return records;
« no previous file with comments | « device/bluetooth/dbus/bluetooth_device_client.cc ('k') | extensions/browser/api/alarms/alarms_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698