Index: extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc |
diff --git a/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc b/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc |
index 2ef959e2b9d8c3fc1d25f8f3889977c1fee01a37..727532c2948539bce104fb78816b664a6e43a187 100644 |
--- a/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc |
+++ b/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc |
@@ -105,7 +105,7 @@ void PopulateCharacteristic(const BluetoothGattCharacteristic* characteristic, |
if (value.empty()) |
return; |
- out->value.reset(new std::string(value.begin(), value.end())); |
+ out->value.reset(new std::vector<char>(value.begin(), value.end())); |
} |
void PopulateDescriptor(const BluetoothGattDescriptor* descriptor, |
@@ -122,7 +122,7 @@ void PopulateDescriptor(const BluetoothGattDescriptor* descriptor, |
if (value.empty()) |
return; |
- out->value.reset(new std::string(value.begin(), value.end())); |
+ out->value.reset(new std::vector<char>(value.begin(), value.end())); |
} |
typedef extensions::ApiResourceManager<extensions::BluetoothLowEnergyConnection> |