Pepper: Whitelist dev channel APIs for some apps.
Some applications need access to dev channel APIs before they will
become stable. As written, this change only performs whitelisting for NaCl
apps; I don't think we have any need for enabling this in the non-NaCl case.
I need to find a good way to test this.
BUG=383937
[email protected], [email protected], [email protected]
Review URL: https://codereview.chromium.org/338523007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278645 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc
index 0d285fdc..a2c3170 100644
--- a/content/browser/plugin_service_impl.cc
+++ b/content/browser/plugin_service_impl.cc
@@ -852,9 +852,11 @@
}
#endif
-bool PluginServiceImpl::PpapiDevChannelSupported() {
+bool PluginServiceImpl::PpapiDevChannelSupported(
+ BrowserContext* browser_context,
+ const GURL& document_url) {
return content::GetContentClient()->browser()->
- IsPluginAllowedToUseDevChannelAPIs();
+ IsPluginAllowedToUseDevChannelAPIs(browser_context, document_url);
}
} // namespace content