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

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: Addressed comments 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 185ae18ef727170cd51982aa4fd093ed6baea745..88123da07bc8bc2c7c0e754a8ef80fa71763816e 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_mac.mm
+++ b/chrome/browser/system_monitor/removable_device_notifications_mac.mm
@@ -112,6 +112,8 @@ void RemovableDeviceNotificationsMac::UpdateDisk(
disk_info_map_.erase(it);
} else {
disk_info_map_[info.bsd_name()] = info;
+ MediaStorageUtil::RecordDeviceInfoHistogram(true, 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