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

Unified Diff: chrome/renderer/plugins/plugin_uma.cc

Issue 13601002: Report UMA for Shockwave Flash and Widevine CDM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/renderer/plugins/plugin_uma.cc
diff --git a/chrome/renderer/plugins/plugin_uma.cc b/chrome/renderer/plugins/plugin_uma.cc
index 5f1bec1a5e72d005f23e639a14549dbebc553817..191e263810f0841d4473623385b60eb7cce9d63c 100644
--- a/chrome/renderer/plugins/plugin_uma.cc
+++ b/chrome/renderer/plugins/plugin_uma.cc
@@ -18,6 +18,8 @@ const char kSilverlightTypePrefix[] = "application/x-silverlight";
const char kRealPlayerTypePrefix[] = "audio/x-pn-realaudio";
const char kJavaTypeSubstring[] = "application/x-java-applet";
const char kQuickTimeType[] = "video/quicktime";
+const char kShockwaveFlashType[] = "application/x-shockwave-flash";
+const char kWidevineCDMType[] = "application/x-ppapi-widevine-cdm";
// Arrays containing file extensions connected with specific plugins.
// The arrays must be sorted because binary search is used on them.
@@ -159,6 +161,11 @@ MissingPluginReporter::PluginType MissingPluginReporter::MimeTypeToPluginType(
if (strcmp(mime_type.c_str(), kQuickTimeType) == 0)
return QUICKTIME;
+ if (strcmp(mime_type.c_str(), kShockwaveFlashType) == 0)
+ return SHOCKWAVE_FLASH;
+
+ if (strcmp(mime_type.c_str(), kWidevineCDMType) == 0)
+ return WIDEVINE_CDM;
+
return OTHER;
}
-
« chrome/renderer/plugins/plugin_uma.h ('K') | « chrome/renderer/plugins/plugin_uma.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698