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

Unified Diff: chrome/browser/pdf_unsupported_feature.cc

Issue 7977042: Get rid of synchronous calls to getting plugins to help with http://codereview.chromium.org/79800... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/pdf_unsupported_feature.cc
===================================================================
--- chrome/browser/pdf_unsupported_feature.cc (revision 102144)
+++ chrome/browser/pdf_unsupported_feature.cc (working copy)
@@ -140,17 +140,11 @@
const WebPluginInfo& reader_plugin,
InfoBarDelegate* old_delegate,
InfoBarDelegate* new_delegate) {
- WebPluginInfo plugin = reader_plugin;
- // Give the plugin a new version so that the renderer doesn't show the blocked
- // plugin UI if it's vulnerable, since we already went through the
- // interstitial.
- plugin.version = ASCIIToUTF16("11.0.0.0");
-
ChromePluginServiceFilter::GetInstance()->OverridePluginForTab(
tab->render_view_host()->process()->id(),
tab->render_view_host()->routing_id(),
tab->tab_contents()->GetURL(),
- plugin);
+ ASCIIToUTF16(PluginGroup::kAdobeReaderGroupName));
tab->render_view_host()->ReloadFrame();
if (new_delegate) {
« no previous file with comments | « chrome/browser/mock_plugin_exceptions_table_model.cc ('k') | chrome/browser/plugin_exceptions_table_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698