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

Unified Diff: chrome/browser/ui/auto_login_info_bar_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
« no previous file with comments | « chrome/browser/ui/android/infobar_stubs.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/auto_login_info_bar_delegate.cc
diff --git a/chrome/browser/ui/auto_login_info_bar_delegate.cc b/chrome/browser/ui/auto_login_info_bar_delegate.cc
index 68e4a333a98f4d26e06b68e2520a58f6677f3225..bf9cb1e623cc418374fd17c785d392d6eb1b1484 100644
--- a/chrome/browser/ui/auto_login_info_bar_delegate.cc
+++ b/chrome/browser/ui/auto_login_info_bar_delegate.cc
@@ -176,7 +176,7 @@ AutoLoginInfoBarDelegate::AutoLoginInfoBarDelegate(
registrar_.Add(this,
chrome::NOTIFICATION_GOOGLE_SIGNED_OUT,
content::Source<Profile>(Profile::FromBrowserContext(
- owner->web_contents()->GetBrowserContext())));
+ owner->GetWebContents()->GetBrowserContext())));
}
AutoLoginInfoBarDelegate::~AutoLoginInfoBarDelegate() {
@@ -215,7 +215,7 @@ string16 AutoLoginInfoBarDelegate::GetButtonLabel(
bool AutoLoginInfoBarDelegate::Accept() {
// AutoLoginRedirector deletes itself.
- new AutoLoginRedirector(&owner()->web_contents()->GetController(),
+ new AutoLoginRedirector(&owner()->GetWebContents()->GetController(),
params_.args);
RecordHistogramAction(HISTOGRAM_ACCEPTED);
button_pressed_ = true;
@@ -224,7 +224,7 @@ bool AutoLoginInfoBarDelegate::Accept() {
bool AutoLoginInfoBarDelegate::Cancel() {
PrefService* pref_service = TabContents::FromWebContents(
- owner()->web_contents())->profile()->GetPrefs();
+ owner()->GetWebContents())->profile()->GetPrefs();
pref_service->SetBoolean(prefs::kAutologinEnabled, false);
RecordHistogramAction(HISTOGRAM_REJECTED);
button_pressed_ = true;
« no previous file with comments | « chrome/browser/ui/android/infobar_stubs.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698