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

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

Issue 10961051: Switch PluginObserver to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_observer.h » ('j') | chrome/browser/plugins/plugin_observer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8951eaa13a022b0525d8c7b3c68184b9a40e244a..b3d3569bb5c986baca2191e1630e9b8594ce920c 100644
--- a/chrome/browser/plugins/plugin_infobar_delegates.cc
+++ b/chrome/browser/plugins/plugin_infobar_delegates.cc
@@ -176,7 +176,9 @@ OutdatedPluginInfoBarDelegate::OutdatedPluginInfoBarDelegate(
PluginObserver* observer,
PluginInstaller* installer,
const string16& message)
- : PluginInfoBarDelegate(InfoBarService::ForTab(observer->tab_contents()),
+ : PluginInfoBarDelegate(
+ InfoBarService::ForTab(
+ TabContents::FromWebContents(observer->web_contents())),
installer->name(),
installer->identifier()),
WeakPluginInstallerObserver(installer),
@@ -233,7 +235,8 @@ bool OutdatedPluginInfoBarDelegate::Accept() {
if (installer()->url_for_display()) {
installer()->OpenDownloadURL(web_contents);
} else {
- installer()->StartInstalling(observer_->tab_contents());
+ installer()->StartInstalling(
+ TabContents::FromWebContents(observer_->web_contents()));
}
return false;
}
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_observer.h » ('j') | chrome/browser/plugins/plugin_observer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698