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

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

Issue 15028015: Conditionally build support for Pepper-based CDMs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback and cleaned up a few more things. Created 7 years, 7 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 1c3266454585aa606dc55edd30fcc87b72162fc2..237cb41aaf9e1896868ee1bb524651c8164831f0 100644
--- a/chrome/renderer/plugins/plugin_uma.cc
+++ b/chrome/renderer/plugins/plugin_uma.cc
@@ -197,8 +197,10 @@ PluginUMAReporter::PluginType PluginUMAReporter::MimeTypeToPluginType(
return SHOCKWAVE_FLASH;
}
+#if defined(ENABLE_PEPPER_CDMS)
if (mime_type == kWidevineCdmPluginMimeType)
return WIDEVINE_CDM;
+#endif
return UNSUPPORTED_MIMETYPE;
}

Powered by Google App Engine
This is Rietveld 408576698