| 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 e89a2b50a8d0a8563cbaf95c950e5088697ee40f..58f9d06aed34529069662f355b87bddccb6cfd26 100644
|
| --- a/chrome/browser/ui/sync/one_click_signin_helper.cc
|
| +++ b/chrome/browser/ui/sync/one_click_signin_helper.cc
|
| @@ -395,7 +395,7 @@ bool OneClickSigninHelper::CanOffer(content::WebContents* web_contents,
|
|
|
| Profile* profile =
|
| Profile::FromBrowserContext(web_contents->GetBrowserContext());
|
| - if (!profile)
|
| + if (!profile || !profile->IsSigninAllowed())
|
| return false;
|
|
|
| if (can_offer_for == CAN_OFFER_FOR_INTERSTITAL_ONLY &&
|
| @@ -504,6 +504,9 @@ OneClickSigninHelper::Offer OneClickSigninHelper::CanOfferOnIOThreadImpl(
|
| if (io_data->is_incognito())
|
| return DONT_OFFER;
|
|
|
| + if (!SigninManager::IsSigninAllowedOnIOThread(io_data))
|
| + return DONT_OFFER;
|
| +
|
| if (!io_data->reverse_autologin_enabled()->GetValue())
|
| return DONT_OFFER;
|
|
|
|
|