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

Unified Diff: chrome/browser/system_monitor/removable_device_notifications_mac.mm

Issue 10933114: Combine boolean MediaDeviceNotifications histograms to an enumerated histogram. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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: chrome/browser/system_monitor/removable_device_notifications_mac.mm
diff --git a/chrome/browser/system_monitor/removable_device_notifications_mac.mm b/chrome/browser/system_monitor/removable_device_notifications_mac.mm
index 85455e6a9ee9605c431db01c8093148700b868b0..29ac0c2db9aeca70e9dfd00fc7893e3a2482148f 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_mac.mm
+++ b/chrome/browser/system_monitor/removable_device_notifications_mac.mm
@@ -4,6 +4,7 @@
#include "chrome/browser/system_monitor/removable_device_notifications_mac.h"
+#include "chrome/browser/system_monitor/removable_device_notifications_histogram.h"
#include "content/public/browser/browser_thread.h"
namespace chrome {
@@ -96,6 +97,8 @@ void RemovableDeviceNotificationsMac::UpdateDisk(
disk_info_map_.erase(it);
} else {
disk_info_map_[info.bsd_name()] = info;
+ RecordDeviceInfoHistogram(info.type(), info.device_id(),
+ info.display_name());
if (ShouldPostNotificationForDisk(info)) {
base::SystemMonitor::Get()->ProcessRemovableStorageAttached(
info.device_id(), info.display_name(), info.mount_point().value());

Powered by Google App Engine
This is Rietveld 408576698