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

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: commentary 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') | no next file with comments »
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 24e19b8d83c4a1972c5a15ff5524c04aaf5d247b..556bc2480db9a4a74ac01e8045e9efc63e30ba46 100644
--- a/chrome/browser/plugins/plugin_infobar_delegates.cc
+++ b/chrome/browser/plugins/plugin_infobar_delegates.cc
@@ -177,7 +177,8 @@ OutdatedPluginInfoBarDelegate::OutdatedPluginInfoBarDelegate(
PluginInstaller* installer,
const string16& message)
: PluginInfoBarDelegate(
- InfoBarService::FromTabContents(observer->tab_contents()),
+ InfoBarService::FromTabContents(
+ TabContents::FromWebContents(observer->web_contents())),
installer->name(),
installer->identifier()),
WeakPluginInstallerObserver(installer),
@@ -234,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698