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. |