Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / sync / sync_promo_ui.cc
blob9b5c4913bd1da1ab3e8ee8748054515e8f4deb8d
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/sync/sync_promo_ui.h"
7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/signin/signin_promo.h"
10 bool SyncPromoUI::ShouldShowSyncPromo(Profile* profile) {
11 // Don't show sync promo if the sign in promo should not be shown.
12 if (!signin::ShouldShowPromo(profile)) {
13 return false;
16 // Don't show if sync is disabled by policy.
17 if (!profile->IsSyncAccessible())
18 return false;
20 return true;