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

Unified Diff: content/browser/bluetooth/bluetooth_metrics.h

Issue 2015463004: bluetooth: Use BluetoothUUID instead of string when sending uuids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-mojo-request-device
Patch Set: Lint 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/bluetooth/bluetooth_metrics.h
diff --git a/content/browser/bluetooth/bluetooth_metrics.h b/content/browser/bluetooth/bluetooth_metrics.h
index d6307947956f8ffd21327dd65d5bf1c66d171f99..a9dbf7c1183f0c7e91a62f30363e3bf347d04755 100644
--- a/content/browser/bluetooth/bluetooth_metrics.h
+++ b/content/browser/bluetooth/bluetooth_metrics.h
@@ -139,7 +139,8 @@ enum class UMAGetPrimaryServiceOutcome {
COUNT
};
// Record the service uuid used when calling getPrimaryService.
-void RecordGetPrimaryServiceService(const device::BluetoothUUID& service);
+void RecordGetPrimaryServiceService(
+ const std::unique_ptr<device::BluetoothUUID>& service);
// There should be a call to this function for every call to
// Send(BluetoothMsg_GetPrimaryServiceSuccess) and
// Send(BluetoothMsg_GetPrimaryServiceError).
@@ -179,7 +180,7 @@ void RecordGetCharacteristicsOutcome(
// Records the UUID of the characteristic used when calling getCharacteristic.
void RecordGetCharacteristicsCharacteristic(
blink::mojom::WebBluetoothGATTQueryQuantity quantity,
- const std::string& characteristic);
+ const std::unique_ptr<device::BluetoothUUID>& characteristic);
// GATT Operations Metrics

Powered by Google App Engine
This is Rietveld 408576698