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

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

Issue 2577183002: Add UMA for the number of devices in the chooser when a device is paired (Closed)
Patch Set: address comments 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 #ifndef CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ 5 #ifndef CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ 6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // Note: Add new RSSI signal strength level immediately above this line. 287 // Note: Add new RSSI signal strength level immediately above this line.
288 COUNT 288 COUNT
289 }; 289 };
290 290
291 // Records the raw RSSI, and processed result displayed to users, when 291 // Records the raw RSSI, and processed result displayed to users, when
292 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is 292 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is
293 // called. 293 // called.
294 void RecordRSSISignalStrength(int rssi); 294 void RecordRSSISignalStrength(int rssi);
295 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); 295 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level);
296 296
297 // In the case of not accepting all devices in the options that are given
298 // to WebBluetooth requestDevice(), records the number of devices in the
299 // chooser when a device is paired.
300 void RecordNumOfDevices(bool accept_all_devices, size_t num_of_devices);
301
297 } // namespace content 302 } // namespace content
298 303
299 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ 304 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698