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

Unified Diff: chrome/browser/autofill/autofill_feedback_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_feedback_infobar_delegate.cc
diff --git a/chrome/browser/autofill/autofill_feedback_infobar_delegate.cc b/chrome/browser/autofill/autofill_feedback_infobar_delegate.cc
index cfc7a60f5bc5072707b8a7630cf1c50a371e3007..540100af68514a8d984ec59fa68b2c4263492b1d 100644
--- a/chrome/browser/autofill/autofill_feedback_infobar_delegate.cc
+++ b/chrome/browser/autofill/autofill_feedback_infobar_delegate.cc
@@ -5,7 +5,7 @@
#include "chrome/browser/autofill/autofill_feedback_infobar_delegate.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/infobars/infobar_tab_helper.h"
+#include "chrome/browser/api/infobars/infobar_tab_service.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/chrome_pages.h"
@@ -17,11 +17,11 @@
const char kCategoryTagAutofill[] = "Autofill";
AutofillFeedbackInfoBarDelegate::AutofillFeedbackInfoBarDelegate(
- InfoBarTabHelper* infobar_helper,
+ InfoBarTabService* infobar_service,
const string16& message,
const string16& link_text,
const std::string& feedback_message)
- : LinkInfoBarDelegate(infobar_helper),
+ : LinkInfoBarDelegate(infobar_service),
message_(message),
link_text_(link_text),
feedback_message_(feedback_message),
@@ -45,7 +45,7 @@ string16 AutofillFeedbackInfoBarDelegate::GetLinkText() const {
bool AutofillFeedbackInfoBarDelegate::LinkClicked(
WindowOpenDisposition disposition) {
chrome::ShowFeedbackPage(
- browser::FindBrowserWithWebContents(owner()->web_contents()),
+ browser::FindBrowserWithWebContents(owner()->GetWebContents()),
feedback_message_,
std::string(kCategoryTagAutofill));
return true;
« no previous file with comments | « chrome/browser/autofill/autofill_feedback_infobar_delegate.h ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698