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

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

Issue 14241006: Eliminate InfoBarTabHelper. Make InfoBarService a concrete class. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 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 | « chrome/browser/pepper_broker_infobar_delegate.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('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
===================================================================
--- chrome/browser/plugins/plugin_infobar_delegates.cc (revision 195254)
+++ chrome/browser/plugins/plugin_infobar_delegates.cc (working copy)
@@ -57,12 +57,12 @@
(disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
content::PAGE_TRANSITION_LINK,
false);
- owner()->GetWebContents()->OpenURL(params);
+ owner()->web_contents()->OpenURL(params);
return false;
}
void PluginInfoBarDelegate::LoadBlockedPlugins() {
- content::WebContents* web_contents = owner()->GetWebContents();
+ content::WebContents* web_contents = owner()->web_contents();
if (web_contents) {
content::RenderViewHost* host = web_contents->GetRenderViewHost();
ChromePluginServiceFilter::GetInstance()->AuthorizeAllPlugins(
@@ -149,8 +149,8 @@
bool UnauthorizedPluginInfoBarDelegate::Cancel() {
content::RecordAction(
UserMetricsAction("BlockedPluginInfobar.AlwaysAllow"));
- content_settings_->AddExceptionForURL(owner()->GetWebContents()->GetURL(),
- owner()->GetWebContents()->GetURL(),
+ content_settings_->AddExceptionForURL(owner()->web_contents()->GetURL(),
+ owner()->web_contents()->GetURL(),
CONTENT_SETTINGS_TYPE_PLUGINS,
std::string(),
CONTENT_SETTING_ALLOW);
@@ -252,7 +252,7 @@
return false;
}
- content::WebContents* web_contents = owner()->GetWebContents();
+ content::WebContents* web_contents = owner()->web_contents();
// A call to any of |OpenDownloadURL()| or |StartInstalling()| will
// result in deleting ourselves. Accordingly, we make sure to
// not pass a reference to an object that can go away.
@@ -429,7 +429,7 @@
url, Referrer(),
(disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
content::PAGE_TRANSITION_LINK, false);
- owner()->GetWebContents()->OpenURL(params);
+ owner()->web_contents()->OpenURL(params);
return false;
}
@@ -524,7 +524,7 @@
bool PluginMetroModeInfoBarDelegate::Cancel() {
DCHECK_EQ(DESKTOP_MODE_REQUIRED, mode_);
- content::WebContents* web_contents = owner()->GetWebContents();
+ content::WebContents* web_contents = owner()->web_contents();
Profile* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
HostContentSettingsMap* content_settings =
@@ -552,7 +552,7 @@
Referrer(),
(disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
content::PAGE_TRANSITION_LINK, false);
- owner()->GetWebContents()->OpenURL(params);
+ owner()->web_contents()->OpenURL(params);
return false;
}
#endif // defined(OS_WIN)
« no previous file with comments | « chrome/browser/pepper_broker_infobar_delegate.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698