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

Unified Diff: chrome/browser/infobars/insecure_content_infobar_delegate.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
Index: chrome/browser/infobars/insecure_content_infobar_delegate.cc
===================================================================
--- chrome/browser/infobars/insecure_content_infobar_delegate.cc (revision 195254)
+++ chrome/browser/infobars/insecure_content_infobar_delegate.cc (working copy)
@@ -24,9 +24,9 @@
// Only supsersede an existing insecure content infobar if we are upgrading
// from DISPLAY to RUN.
- for (size_t i = 0; i < infobar_service->GetInfoBarCount(); ++i) {
- InsecureContentInfoBarDelegate* delegate = infobar_service->
- GetInfoBarDelegateAt(i)->AsInsecureContentInfoBarDelegate();
+ for (size_t i = 0; i < infobar_service->infobar_count(); ++i) {
+ InsecureContentInfoBarDelegate* delegate =
+ infobar_service->infobar_at(i)->AsInsecureContentInfoBarDelegate();
if (delegate != NULL) {
if ((type == RUN) && (delegate->type_ == DISPLAY))
return;
@@ -91,7 +91,7 @@
(type_ == DISPLAY) ? DISPLAY_USER_OVERRIDE : RUN_USER_OVERRIDE,
NUM_EVENTS);
- content::WebContents* web_contents = owner()->GetWebContents();
+ content::WebContents* web_contents = owner()->web_contents();
if (web_contents) {
int32 routing_id = web_contents->GetRoutingID();
web_contents->Send((type_ == DISPLAY) ?
@@ -110,7 +110,7 @@
bool InsecureContentInfoBarDelegate::LinkClicked(
WindowOpenDisposition disposition) {
- owner()->GetWebContents()->OpenURL(OpenURLParams(
+ owner()->web_contents()->OpenURL(OpenURLParams(
google_util::AppendGoogleLocaleParam(GURL(
"https://www.google.com/support/chrome/bin/answer.py?answer=1342714")),
content::Referrer(),
« no previous file with comments | « chrome/browser/infobars/infobars_browsertest.cc ('k') | chrome/browser/managed_mode/managed_mode_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698