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

Side by Side Diff: content/browser/bluetooth/bluetooth_metrics.cc

Issue 2466223002: Implement WebBluetooth getDescriptor[s] (Closed)
Patch Set: Updating cross-origin-objects-exceptions.html Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/bluetooth/bluetooth_metrics.h" 5 #include "content/browser/bluetooth/bluetooth_metrics.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 switch (operation) { 268 switch (operation) {
269 case UMAGATTOperation::CHARACTERISTIC_READ: 269 case UMAGATTOperation::CHARACTERISTIC_READ:
270 RecordCharacteristicReadValueOutcome(outcome); 270 RecordCharacteristicReadValueOutcome(outcome);
271 return; 271 return;
272 case UMAGATTOperation::CHARACTERISTIC_WRITE: 272 case UMAGATTOperation::CHARACTERISTIC_WRITE:
273 RecordCharacteristicWriteValueOutcome(outcome); 273 RecordCharacteristicWriteValueOutcome(outcome);
274 return; 274 return;
275 case UMAGATTOperation::START_NOTIFICATIONS: 275 case UMAGATTOperation::START_NOTIFICATIONS:
276 RecordStartNotificationsOutcome(outcome); 276 RecordStartNotificationsOutcome(outcome);
277 return; 277 return;
278 case UMAGATTOperation::DESCRIPTOR_READ:
ortuno 2016/12/07 08:05:12 No need for these changes.
dougt 2016/12/07 19:50:34 Done.
279 case UMAGATTOperation::DESCRIPTOR_WRITE:
280 // TODO(crbug.com/667319): Record descriptor interactions.
281 return;
278 case UMAGATTOperation::COUNT: 282 case UMAGATTOperation::COUNT:
279 NOTREACHED(); 283 NOTREACHED();
280 return; 284 return;
281 } 285 }
282 NOTREACHED(); 286 NOTREACHED();
283 } 287 }
284 288
285 static UMAGATTOperationOutcome TranslateCacheQueryOutcomeToGATTOperationOutcome( 289 static UMAGATTOperationOutcome TranslateCacheQueryOutcomeToGATTOperationOutcome(
286 CacheQueryOutcome outcome) { 290 CacheQueryOutcome outcome) {
287 switch (outcome) { 291 switch (outcome) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 } 351 }
348 352
349 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level) { 353 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level) {
350 UMA_HISTOGRAM_ENUMERATION( 354 UMA_HISTOGRAM_ENUMERATION(
351 "Bluetooth.Web.RequestDevice.RSSISignalStrengthLevel", 355 "Bluetooth.Web.RequestDevice.RSSISignalStrengthLevel",
352 static_cast<int>(level), 356 static_cast<int>(level),
353 static_cast<int>(UMARSSISignalStrengthLevel::COUNT)); 357 static_cast<int>(UMARSSISignalStrengthLevel::COUNT));
354 } 358 }
355 359
356 } // namespace content 360 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698