Index: chrome/browser/plugins/chrome_plugin_service_filter.cc |
=================================================================== |
--- chrome/browser/plugins/chrome_plugin_service_filter.cc (revision 180618) |
+++ chrome/browser/plugins/chrome_plugin_service_filter.cc (working copy) |
@@ -69,7 +69,7 @@ |
restricted_plugins_.erase(plugin_path); |
} |
-bool ChromePluginServiceFilter::IsPluginAvailable( |
+bool ChromePluginServiceFilter::IsPluginEnabled( |
int render_process_id, |
int render_view_id, |
const void* context, |
@@ -87,9 +87,10 @@ |
details->overridden_plugins[i].url.is_empty())) { |
bool use = details->overridden_plugins[i].plugin.path == plugin->path; |
- if (use) |
- *plugin = details->overridden_plugins[i].plugin; |
- return use; |
+ if (!use) |
+ return false; |
+ *plugin = details->overridden_plugins[i].plugin; |
+ break; |
} |
} |
} |