Index: chrome/browser/permissions/permission_uma_util.cc |
diff --git a/chrome/browser/permissions/permission_uma_util.cc b/chrome/browser/permissions/permission_uma_util.cc |
index 63fa2243b0d6e4007b676bcf60844d141784abaf..6c27a069845e7515237e9bdbaf8c5cf31bb000a3 100644 |
--- a/chrome/browser/permissions/permission_uma_util.cc |
+++ b/chrome/browser/permissions/permission_uma_util.cc |
@@ -519,6 +519,10 @@ void PermissionUmaUtil::PermissionPromptAcceptedWithPersistenceToggle( |
UMA_HISTOGRAM_BOOLEAN("Permissions.Prompt.Accepted.Persisted.Flash", |
toggle_enabled); |
break; |
+ |
+ case PermissionType::SENSORS: |
+ // TODO(riju): when UMA is ready. |
+ break; |
// The user is not prompted for these permissions, thus there is no accept |
// recorded for them. |
case PermissionType::MIDI: |
@@ -570,6 +574,11 @@ void PermissionUmaUtil::PermissionPromptDeniedWithPersistenceToggle( |
UMA_HISTOGRAM_BOOLEAN("Permissions.Prompt.Denied.Persisted.Flash", |
toggle_enabled); |
break; |
+ case PermissionType::SENSORS: |
+ // TODO(riju): when UMA is ready. |
+ // The user is not prompted for these permissions, thus there is no accept |
+ // recorded for them. |
+ break; |
// The user is not prompted for these permissions, thus there is no deny |
// recorded for them. |
case PermissionType::MIDI: |
@@ -660,6 +669,15 @@ void PermissionUmaUtil::RecordPermissionAction( |
"Permissions.Action.InsecureOrigin.MidiSysEx", |
action); |
break; |
+ // TODO(riju) : when UMA is ready. |
+ case PermissionType::SENSORS: |
+ /* |
+ PERMISSION_ACTION_UMA(secure_origin, "Permissions.Action.Sensors", |
+ "Permissions.Action.SecureOrigin.Sensors", |
+ "Permissions.Action.InsecureOrigin.Sensors", |
+ action); |
+ */ |
+ break; |
case PermissionType::PUSH_MESSAGING: |
PERMISSION_ACTION_UMA(secure_origin, "Permissions.Action.PushMessaging", |
"Permissions.Action.SecureOrigin.PushMessaging", |