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

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

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 10 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
« 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 a43c228cf8f98883f8af8eb5865f7ff310b0dc44..949d29da302606b52f03eabb32da534d0f2e1db8 100644
--- a/device/bluetooth/dbus/fake_bluetooth_device_client.cc
+++ b/device/bluetooth/dbus/fake_bluetooth_device_client.cc
@@ -106,10 +106,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>();
@@ -122,10 +122,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