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

Unified Diff: extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc

Issue 820673004: json_schema_compiler: Use std::vector<char> for binary values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplify_json_schema
Patch Set: Fix merge error. Created 5 years, 11 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: 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>

Powered by Google App Engine
This is Rietveld 408576698