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

Unified Diff: chrome/browser/plugin_installer_infobar_delegate.cc

Issue 8851007: WIP / Do not commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « chrome/browser/plugin_installer_infobar_delegate.h ('k') | chrome/browser/plugin_installer_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_installer_infobar_delegate.cc
diff --git a/chrome/browser/plugin_installer_infobar_delegate.cc b/chrome/browser/plugin_installer_infobar_delegate.cc
index 01f054b3ea28d1842fd93b6c3763f87cc8671d62..18c19e4c4cf9317b6c3622c57ba82b89d15bf4a5 100644
--- a/chrome/browser/plugin_installer_infobar_delegate.cc
+++ b/chrome/browser/plugin_installer_infobar_delegate.cc
@@ -15,11 +15,13 @@
#include "ui/base/resource/resource_bundle.h"
PluginInstallerInfoBarDelegate::PluginInstallerInfoBarDelegate(
+ PluginInstaller* installer,
InfoBarTabHelper* infobar_helper,
const string16& plugin_name,
const GURL& learn_more_url,
const base::Closure& callback)
: ConfirmInfoBarDelegate(infobar_helper),
+ PluginInstallerObserver(installer),
plugin_name_(plugin_name),
learn_more_url_(learn_more_url),
callback_(callback) {
@@ -79,3 +81,7 @@ bool PluginInstallerInfoBarDelegate::LinkClicked(
content::PAGE_TRANSITION_LINK);
return false;
}
+
+void PluginInstallerInfoBarDelegate::DidStartDownload() {
+ owner()->RemoveInfoBar(this);
+}
« no previous file with comments | « chrome/browser/plugin_installer_infobar_delegate.h ('k') | chrome/browser/plugin_installer_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698