| Index: chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
|
| diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
|
| index dd8a79ec53d48a23d43dc0d21dde074c1a3c8ca3..e378a235316dac90ec2563ecce91bdb7766a3dad 100644
|
| --- a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
|
| +++ b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
|
| @@ -127,6 +127,9 @@ bool SyncPromoUI::ShouldShowSyncPromo(Profile* profile) {
|
| if (net::NetworkChangeNotifier::IsOffline())
|
| return false;
|
|
|
| + // Honor the signin policy.
|
| + if (!profile->GetOriginalProfile()->IsSigninAllowed())
|
| + return false;
|
| // Display the signin promo if the user is not signed in.
|
| SigninManager* signin = SigninManagerFactory::GetForProfile(
|
| profile->GetOriginalProfile());
|
|
|