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

Unified Diff: chrome/browser/ui/sync/one_click_signin_helper.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/ui/sync/one_click_signin_helper.cc
diff --git a/chrome/browser/ui/sync/one_click_signin_helper.cc b/chrome/browser/ui/sync/one_click_signin_helper.cc
index 93d437e5ba11d1d0125b2ae8441d30b31704f0cb..3534226fdfff5aab43f556cb52e409235631f4aa 100644
--- a/chrome/browser/ui/sync/one_click_signin_helper.cc
+++ b/chrome/browser/ui/sync/one_click_signin_helper.cc
@@ -153,7 +153,7 @@ bool OneClickLoginInfoBarDelegate::Accept() {
// User has accepted one-click sign-in for this account. Never ask again for
// this profile.
DisableOneClickSignIn();
- content::WebContents* web_contents = owner()->web_contents();
+ content::WebContents* web_contents = owner()->GetWebContents();
RecordHistogramAction(one_click_signin::HISTOGRAM_ACCEPTED);
browser::FindBrowserWithWebContents(web_contents)->window()->
ShowOneClickSigninBubble(base::Bind(&StartSync, web_contents,
@@ -179,7 +179,7 @@ bool OneClickLoginInfoBarDelegate::LinkClicked(
content::OpenURLParams params(
GURL(chrome::kChromeSyncLearnMoreURL), content::Referrer(), disposition,
content::PAGE_TRANSITION_LINK, false);
- owner()->web_contents()->OpenURL(params);
+ owner()->GetWebContents()->OpenURL(params);
return false;
}
@@ -191,7 +191,7 @@ InfoBarDelegate::InfoBarAutomationType
void OneClickLoginInfoBarDelegate::DisableOneClickSignIn() {
PrefService* pref_service =
- TabContents::FromWebContents(owner()->web_contents())->
+ TabContents::FromWebContents(owner()->GetWebContents())->
profile()->GetPrefs();
pref_service->SetBoolean(prefs::kReverseAutologinEnabled, false);
}
@@ -199,7 +199,7 @@ void OneClickLoginInfoBarDelegate::DisableOneClickSignIn() {
void OneClickLoginInfoBarDelegate::AddEmailToOneClickRejectedList(
const std::string& email) {
PrefService* pref_service =
- TabContents::FromWebContents(owner()->web_contents())->
+ TabContents::FromWebContents(owner()->GetWebContents())->
profile()->GetPrefs();
ListPrefUpdate updater(pref_service,
prefs::kReverseAutologinRejectedEmailList);
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_browsertest.cc ('k') | chrome/browser/ui/views/infobars/confirm_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698