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

Unified Diff: chrome/browser/autofill/autofill_cc_infobar_delegate.cc

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments, merge to LKGR Created 8 years, 4 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/autofill/autofill_cc_infobar_delegate.cc
diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
index cff0cae7bbdac8d05d46658c514102533df01419..2b58724eac51bc62f450d5421b65b5ce0d38333f 100644
--- a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
+++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
@@ -5,9 +5,9 @@
#include "chrome/browser/autofill/autofill_cc_infobar_delegate.h"
#include "base/logging.h"
+#include "chrome/browser/api/infobars/infobar_tab_service.h"
#include "chrome/browser/autofill/credit_card.h"
#include "chrome/browser/autofill/personal_data_manager.h"
-#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/browser/web_contents.h"
@@ -18,11 +18,11 @@
#include "ui/base/resource/resource_bundle.h"
AutofillCCInfoBarDelegate::AutofillCCInfoBarDelegate(
- InfoBarTabHelper* infobar_helper,
+ InfoBarTabService* infobar_service,
const CreditCard* credit_card,
PersonalDataManager* personal_data,
const AutofillMetrics* metric_logger)
- : ConfirmInfoBarDelegate(infobar_helper),
+ : ConfirmInfoBarDelegate(infobar_service),
credit_card_(credit_card),
personal_data_(personal_data),
metric_logger_(metric_logger),
@@ -89,8 +89,8 @@ string16 AutofillCCInfoBarDelegate::GetLinkText() const {
}
bool AutofillCCInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {
- owner()->web_contents()->GetDelegate()->OpenURLFromTab(
- owner()->web_contents(),
+ owner()->GetWebContents()->GetDelegate()->OpenURLFromTab(
+ owner()->GetWebContents(),
content::OpenURLParams(GURL(chrome::kAutofillHelpURL),
content::Referrer(),
NEW_FOREGROUND_TAB,
« no previous file with comments | « chrome/browser/autofill/autofill_cc_infobar_delegate.h ('k') | chrome/browser/autofill/autofill_feedback_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698