| 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 281c20afaa0332c2b16c95c915ab7238fa8423d3..a0c9abb2822cc142c8818f482c92fe6955f65395 100644
|
| --- a/chrome/browser/ui/sync/one_click_signin_helper.cc
|
| +++ b/chrome/browser/ui/sync/one_click_signin_helper.cc
|
| @@ -539,6 +539,11 @@ bool OneClickSigninHelper::CanOffer(content::WebContents* web_contents,
|
| if (!profile)
|
| return false;
|
|
|
| + SigninManager* manager =
|
| + SigninManagerFactory::GetForProfile(profile);
|
| + if (manager && !manager->IsSigninAllowed())
|
| + return false;
|
| +
|
| if (can_offer_for == CAN_OFFER_FOR_INTERSTITAL_ONLY &&
|
| !profile->GetPrefs()->GetBoolean(prefs::kReverseAutologinEnabled))
|
| return false;
|
| @@ -547,8 +552,6 @@ bool OneClickSigninHelper::CanOffer(content::WebContents* web_contents,
|
| return false;
|
|
|
| if (!email.empty()) {
|
| - SigninManager* manager =
|
| - SigninManagerFactory::GetForProfile(profile);
|
| if (!manager)
|
| return false;
|
|
|
| @@ -657,6 +660,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;
|
|
|
|
|