summaryrefslogtreecommitdiffstats
path: root/content/browser/plugin_service_impl.cc
diff options
context:
space:
mode:
authorddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-17 22:32:51 +0000
committerddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-17 22:32:51 +0000
commit3627aa3fa39aef7cbcc3dfd67b51e8fb9efa68c5 (patch)
tree603a8c2df1e3cb8da3c8db86d8670fa5e6f9fcad /content/browser/plugin_service_impl.cc
parent2a29c58de9e4a1ac9dfe41024b30bae28db22c45 (diff)
downloadchromium_src-3627aa3fa39aef7cbcc3dfd67b51e8fb9efa68c5.zip
chromium_src-3627aa3fa39aef7cbcc3dfd67b51e8fb9efa68c5.tar.gz
chromium_src-3627aa3fa39aef7cbcc3dfd67b51e8fb9efa68c5.tar.bz2
Check whether the Pepper CDM is available before adding the key system.
This adds a synchronous IPC from chrome_key_systems.cc to the browser process to check with the PluginService. BUG=224793 TEST=existing IsTypeSupported browser tests and new negative tests Review URL: https://chromiumcodereview.appspot.com/23828007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/plugin_service_impl.cc')
-rw-r--r--content/browser/plugin_service_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc
index 5a79f7d..8ffea2d 100644
--- a/content/browser/plugin_service_impl.cc
+++ b/content/browser/plugin_service_impl.cc
@@ -658,7 +658,7 @@ void PluginServiceImpl::RegisterPepperPlugins() {
PepperPluginInfo* PluginServiceImpl::GetRegisteredPpapiPluginInfo(
const base::FilePath& plugin_path) {
PepperPluginInfo* info = NULL;
- for (size_t i = 0; i < ppapi_plugins_.size(); i++) {
+ for (size_t i = 0; i < ppapi_plugins_.size(); ++i) {
if (ppapi_plugins_[i].path == plugin_path) {
info = &ppapi_plugins_[i];
break;