Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2626)

Unified Diff: chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc

Issue 9159047: Disable sync promo for Chromium builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/sync_promo/sync_promo_trial.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6545bdfadfde61aae1819496f42cd4fd7a42be53..2e18260a7e7aacc48714ff7b57a419d39c132864 100644
--- a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
+++ b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
@@ -219,8 +219,12 @@ bool SyncPromoUI::ShouldShowSyncPromoAtStartup(Profile* profile,
if (!AllowPromoAtStartupForCurrentBrand())
return false;
- // Default to show the promo.
+ // Default to show the promo for Google Chrome builds.
+#if defined(GOOGLE_CHROME_BUILD)
return true;
+#else
+ return false;
+#endif
}
void SyncPromoUI::DidShowSyncPromoAtStartup(Profile* profile) {
@@ -297,10 +301,6 @@ bool SyncPromoUI::UserHasSeenSyncPromoAtStartup(Profile* profile) {
// static
int SyncPromoUI::GetSyncPromoVersion() {
int version = 0;
- if (base::StringToInt(CommandLine::ForCurrentProcess()->
- GetSwitchValueASCII(switches::kSyncPromoVersion), &version)) {
- return version;
- }
if (sync_promo_trial::GetSyncPromoVersionForCurrentTrial(&version))
return version;
// Default promo version is 0.
« no previous file with comments | « chrome/browser/ui/webui/sync_promo/sync_promo_trial.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698