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

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

Issue 2458163003: Add UMA for WebBluetooth RSSI signal strength level (Closed)
Patch Set: add UMA for WebBluetooth RSSI signal strength level 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 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 "Bluetooth.Web.Characteristic.StartNotifications.Outcome", 321 "Bluetooth.Web.Characteristic.StartNotifications.Outcome",
322 static_cast<int>(outcome), 322 static_cast<int>(outcome),
323 static_cast<int>(UMAGATTOperationOutcome::COUNT)); 323 static_cast<int>(UMAGATTOperationOutcome::COUNT));
324 } 324 }
325 325
326 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome) { 326 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome) {
327 RecordStartNotificationsOutcome( 327 RecordStartNotificationsOutcome(
328 TranslateCacheQueryOutcomeToGATTOperationOutcome(outcome)); 328 TranslateCacheQueryOutcomeToGATTOperationOutcome(outcome));
329 } 329 }
330 330
331 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level) {
332 UMA_HISTOGRAM_ENUMERATION(
333 "Bluetooth.Web.RequestDevice.RSSISignalStrengthLevel",
334 static_cast<int>(level),
335 static_cast<int>(UMARSSISignalStrengthLevel::COUNT));
336 }
337
331 } // namespace content 338 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698