| 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 9affe24a6af438342fe7fff64fffa7dbea32e42f..cacb37eccea97c93df85ba616ee9fc042c037527 100644
|
| --- a/chrome/browser/ui/sync/one_click_signin_helper.cc
|
| +++ b/chrome/browser/ui/sync/one_click_signin_helper.cc
|
| @@ -404,7 +404,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 &&
|
| @@ -513,6 +513,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;
|
|
|
|
|