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

Unified Diff: chrome/browser/content_settings/permission_context_uma_util.cc

Issue 769103002: Refactor ProtectedMediaIdentifierPermissionContext to derive from PermissionContextBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: apply comments, fix compile Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/content_settings/permission_context_uma_util.cc
diff --git a/chrome/browser/content_settings/permission_context_uma_util.cc b/chrome/browser/content_settings/permission_context_uma_util.cc
index 566e9aaf401308754129cc3e4c0a3895fbb1d835..4e025f88d88fe39047feb0e6ade2abfa460c9d56 100644
--- a/chrome/browser/content_settings/permission_context_uma_util.cc
+++ b/chrome/browser/content_settings/permission_context_uma_util.cc
@@ -105,6 +105,11 @@ void RecordPermissionRequest(
case CONTENT_SETTINGS_TYPE_PUSH_MESSAGING:
type = content::PERMISSION_PUSH_MESSAGING;
break;
+#if defined(OS_ANDROID)
Miguel Garcia 2014/12/03 18:57:36 You need a change in histograms.xml to add the new
timvolodine 2014/12/04 17:22:26 Yes, thanks for catching this. Done.
+ case CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER:
+ type = content::PERMISSION_PROTECTED_MEDIA;
+ break;
+#endif
default:
NOTREACHED() << "PERMISSION " << permission << " not accounted for";
return;

Powered by Google App Engine
This is Rietveld 408576698