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

Unified Diff: chrome/browser/plugins/plugin_info_message_filter.cc

Issue 23828007: Check whether the Pepper CDM is available before adding the key system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed to check for Pepper plugins only and not use PluginList; added tests Created 7 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/plugins/plugin_info_message_filter.cc
diff --git a/chrome/browser/plugins/plugin_info_message_filter.cc b/chrome/browser/plugins/plugin_info_message_filter.cc
index f2260e43fb3c3949d8472ee8f129d5d37e302e48..398398acdb9bffe0522d89998b725cd261bd4861 100644
--- a/chrome/browser/plugins/plugin_info_message_filter.cc
+++ b/chrome/browser/plugins/plugin_info_message_filter.cc
@@ -97,6 +97,9 @@ bool PluginInfoMessageFilter::OnMessageReceived(const IPC::Message& message,
IPC_BEGIN_MESSAGE_MAP_EX(PluginInfoMessageFilter, message, *message_was_ok)
IPC_MESSAGE_HANDLER_DELAY_REPLY(ChromeViewHostMsg_GetPluginInfo,
OnGetPluginInfo)
+ IPC_MESSAGE_HANDLER(
+ ChromeViewHostMsg_IsPepperPluginRegisteredForMimeType,
+ OnIsPepperPluginRegisteredForMimeType)
IPC_MESSAGE_UNHANDLED(return false)
IPC_END_MESSAGE_MAP()
return true;
@@ -164,6 +167,14 @@ void PluginInfoMessageFilter::PluginsLoaded(
Send(reply_msg);
}
+void PluginInfoMessageFilter::OnIsPepperPluginRegisteredForMimeType(
+ const std::string& mime_type,
+ bool* is_registered) {
+ *is_registered =
+ PluginService::GetInstance()->IsPepperPluginRegisteredForMimeType(
+ mime_type);
+}
+
void PluginInfoMessageFilter::Context::DecidePluginStatus(
const GetPluginInfo_Params& params,
const WebPluginInfo& plugin,

Powered by Google App Engine
This is Rietveld 408576698