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

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

Issue 11029045: Fix crash when a download is requested for an outdated plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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_infobar_delegates.cc
diff --git a/chrome/browser/plugins/plugin_infobar_delegates.cc b/chrome/browser/plugins/plugin_infobar_delegates.cc
index 78607fcc76c10c4fb47e6d06fb485c031c309341..9627248fe958fa14cedd7ed74688742066436786 100644
--- a/chrome/browser/plugins/plugin_infobar_delegates.cc
+++ b/chrome/browser/plugins/plugin_infobar_delegates.cc
@@ -234,12 +234,10 @@ bool OutdatedPluginInfoBarDelegate::Accept() {
content::WebContents* web_contents = owner()->GetWebContents();
if (plugin_metadata_->url_for_display()) {
- installer()->OpenDownloadURL(plugin_metadata_->url_for_display(),
- plugin_metadata_->plugin_url(),
+ installer()->OpenDownloadURL(plugin_metadata_->plugin_url(),
web_contents);
} else {
installer()->StartInstalling(
- plugin_metadata_->url_for_display(),
plugin_metadata_->plugin_url(),
TabContents::FromWebContents(web_contents));
}
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_installer.h » ('j') | chrome/browser/plugins/plugin_installer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698