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

Issue 12638005: Fix sync promo first run bugs (Closed)

Created:
7 years, 9 months ago by sail
Modified:
7 years, 9 months ago
Reviewers:
gab, sky, marja
CC:
chromium-reviews, macourteau
Visibility:
Public.

Description

Fix sync promo first run bugs This CL fixes two small bugs with showing the sync promo on first run. First, if a master prefs file specified start URLs (using "first_run_tabs") then the sync promo wouldn't be shown. Fix was to add the sync promo even if the start URLs was non-empty. Second, on Mac OS X, the "On Startup" pref would incorrectly be migrated to "Continue where I left off". This also caused the sync promo to be skipped. The problem was the profile version pref was not set yet which caused the migration code to assume that an old profile was being migrated. Fix was to check that the pref was actually set. BUG=180521 TEST=Created the following master prefs file: { "homepage" : "http://www.chromium.org/", "homepage_is_newtabpage" : false, "first_run_tabs" : [ "new_tab_page", "welcome_page", "http://cnn.com" ] } Placed the file in /Library/Application Support/Chromium/Chromium Master Preferences Verified that the sync promo showed. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187093

Patch Set 1 #

Total comments: 6

Patch Set 2 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -32 lines) Patch
M chrome/browser/first_run/first_run_internal.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/prefs/session_startup_pref.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 3 chunks +30 lines, -25 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
sail
marja: session_startup_pref.cc gab: first_run_internal.h sky: startup/*
7 years, 9 months ago (2013-03-08 01:22:32 UTC) #1
marja
session_startup_pref.cc lgtm
7 years, 9 months ago (2013-03-08 11:29:53 UTC) #2
gab
LGTM w/ one question below; seems to be the same behavior as the old code ...
7 years, 9 months ago (2013-03-08 14:39:32 UTC) #3
sky
https://codereview.chromium.org/12638005/diff/1/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://codereview.chromium.org/12638005/diff/1/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode254 chrome/browser/ui/startup/startup_browser_creator_impl.cc:254: bool IsNewTabURL(const GURL& url, Profile* profile) { IsNewTabOrHomePage() https://codereview.chromium.org/12638005/diff/1/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode260 ...
7 years, 9 months ago (2013-03-08 16:04:19 UTC) #4
sail
Addressed review comments. Please take a look. https://codereview.chromium.org/12638005/diff/1/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://codereview.chromium.org/12638005/diff/1/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode254 chrome/browser/ui/startup/startup_browser_creator_impl.cc:254: bool IsNewTabURL(const ...
7 years, 9 months ago (2013-03-08 20:06:43 UTC) #5
sky
LGTM
7 years, 9 months ago (2013-03-08 21:56:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/12638005/8001
7 years, 9 months ago (2013-03-08 21:58:37 UTC) #7
commit-bot: I haz the power
7 years, 9 months ago (2013-03-09 00:31:07 UTC) #8
Message was sent while issue was closed.
Change committed as 187093

Powered by Google App Engine
This is Rietveld 408576698