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

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

Issue 2466223002: Implement WebBluetooth getDescriptor[s] (Closed)
Patch Set: Ensure that we throw a kGattServerNotConnected error if getDescriptor[s] is called while not connec… 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
Index: content/browser/bluetooth/bluetooth_metrics.cc
diff --git a/content/browser/bluetooth/bluetooth_metrics.cc b/content/browser/bluetooth/bluetooth_metrics.cc
index c9e540517d0e3603a7503fb9a15ddd536b554390..0f1af4c6b680a9552a03301ca20930d55de7757a 100644
--- a/content/browser/bluetooth/bluetooth_metrics.cc
+++ b/content/browser/bluetooth/bluetooth_metrics.cc
@@ -226,6 +226,7 @@ void RecordGetCharacteristicsOutcome(
UMAGetCharacteristicOutcome::NO_SERVICE);
return;
case CacheQueryOutcome::NO_CHARACTERISTIC:
+ case CacheQueryOutcome::NO_DESCRIPTOR:
NOTREACHED();
return;
}
@@ -262,6 +263,9 @@ void RecordGATTOperationOutcome(UMAGATTOperation operation,
case UMAGATTOperation::START_NOTIFICATIONS:
RecordStartNotificationsOutcome(outcome);
return;
+ case UMAGATTOperation::DESCRIPTOR_READ: // TODO dft
ortuno 2016/11/21 03:34:08 TODO(crbug.com/[new bug number]): Record descripto
dougt 2016/11/22 01:47:15 Acknowledged.
+ case UMAGATTOperation::DESCRIPTOR_WRITE:
+ return;
case UMAGATTOperation::COUNT:
NOTREACHED();
return;
@@ -283,6 +287,8 @@ static UMAGATTOperationOutcome TranslateCacheQueryOutcomeToGATTOperationOutcome(
return UMAGATTOperationOutcome::NO_SERVICE;
case CacheQueryOutcome::NO_CHARACTERISTIC:
return UMAGATTOperationOutcome::NO_CHARACTERISTIC;
+ case CacheQueryOutcome::NO_DESCRIPTOR:
+ return UMAGATTOperationOutcome::NO_DESCRIPTOR;
}
NOTREACHED() << "No need to record success or renderer crash";
return UMAGATTOperationOutcome::NOT_SUPPORTED;

Powered by Google App Engine
This is Rietveld 408576698