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

Issue 8093016: Show sync promo at startup (Closed)

Created:
9 years, 2 months ago by sail
Modified:
9 years, 2 months ago
CC:
chromium-reviews, rginda+watch_chromium.org, achuith+watch_chromium.org
Visibility:
Public.

Description

Show sync promo at startup This CL changes the startup behavior so that for new Chrome installs we now show the chrome://syncpromo page instead of the new tab page. We also do the same thing when a user creates a new profile. This CL also keeps track of the number of times the promo page has been shown so that we only show it 10 times. In a later CL I'll add code to suppress the promo if the user is already signed into sync or if they have clicked the "Skip setup for now" button. BUG=97779 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104054

Patch Set 1 #

Patch Set 2 : comments #

Total comments: 2

Patch Set 3 : Used browser init #

Patch Set 4 : remove old code #

Total comments: 2

Patch Set 5 : Address review comments #

Patch Set 6 : fix compile errors #

Total comments: 4

Patch Set 7 : addressed review comments #

Patch Set 8 : fix build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -34 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_init.h View 1 2 3 4 5 6 4 chunks +24 lines, -6 lines 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 2 3 4 5 6 7 9 chunks +35 lines, -13 lines 0 comments Download
M chrome/browser/ui/browser_init_browsertest.cc View 1 2 3 4 5 8 chunks +22 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/sync_promo_ui.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_promo_ui.cc View 3 chunks +41 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
sail
9 years, 2 months ago (2011-10-01 18:35:53 UTC) #1
sky
This seems like it overlaps a bit with 95076. http://codereview.chromium.org/8093016/diff/2001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): http://codereview.chromium.org/8093016/diff/2001/chrome/browser/profiles/profile_manager.cc#newcode70 chrome/browser/profiles/profile_manager.cc:70: ...
9 years, 2 months ago (2011-10-01 20:32:42 UTC) #2
sail
http://codereview.chromium.org/8093016/diff/2001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): http://codereview.chromium.org/8093016/diff/2001/chrome/browser/profiles/profile_manager.cc#newcode70 chrome/browser/profiles/profile_manager.cc:70: GURL url; On 2011/10/01 20:32:42, sky wrote: > This ...
9 years, 2 months ago (2011-10-01 21:37:33 UTC) #3
sky
Wouldn't it mean you don't have to duplicate code? -Scott
9 years, 2 months ago (2011-10-01 22:23:03 UTC) #4
sail
On 2011/10/01 22:23:03, sky wrote: > Wouldn't it mean you don't have to duplicate code? ...
9 years, 2 months ago (2011-10-01 22:59:43 UTC) #5
sky
On 2011/10/01 22:59:43, sail wrote: > On 2011/10/01 22:23:03, sky wrote: > > Wouldn't it ...
9 years, 2 months ago (2011-10-03 14:14:16 UTC) #6
sail
changed to use BrowserInit, please take another look. Thanks.
9 years, 2 months ago (2011-10-04 08:45:44 UTC) #7
sky
http://codereview.chromium.org/8093016/diff/9001/chrome/browser/ui/browser_init.h File chrome/browser/ui/browser_init.h (right): http://codereview.chromium.org/8093016/diff/9001/chrome/browser/ui/browser_init.h#newcode70 chrome/browser/ui/browser_init.h:70: bool is_first_run, int* return_code); Each param on its own ...
9 years, 2 months ago (2011-10-04 15:33:53 UTC) #8
sail
http://codereview.chromium.org/8093016/diff/9001/chrome/browser/ui/browser_init.h File chrome/browser/ui/browser_init.h (right): http://codereview.chromium.org/8093016/diff/9001/chrome/browser/ui/browser_init.h#newcode70 chrome/browser/ui/browser_init.h:70: bool is_first_run, int* return_code); On 2011/10/04 15:33:53, sky wrote: ...
9 years, 2 months ago (2011-10-04 19:25:22 UTC) #9
sky
http://codereview.chromium.org/8093016/diff/12002/chrome/browser/ui/browser_init.cc File chrome/browser/ui/browser_init.cc (right): http://codereview.chromium.org/8093016/diff/12002/chrome/browser/ui/browser_init.cc#newcode1292 chrome/browser/ui/browser_init.cc:1292: startup_urls->push_back(GURL()); // New tab page. Might 1286 have already ...
9 years, 2 months ago (2011-10-04 20:13:22 UTC) #10
sail
http://codereview.chromium.org/8093016/diff/12002/chrome/browser/ui/browser_init.cc File chrome/browser/ui/browser_init.cc (right): http://codereview.chromium.org/8093016/diff/12002/chrome/browser/ui/browser_init.cc#newcode1292 chrome/browser/ui/browser_init.cc:1292: startup_urls->push_back(GURL()); // New tab page. On 2011/10/04 20:13:23, sky ...
9 years, 2 months ago (2011-10-04 20:56:23 UTC) #11
sky
LGTM
9 years, 2 months ago (2011-10-04 22:12:59 UTC) #12
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/8093016/16001
9 years, 2 months ago (2011-10-04 22:14:07 UTC) #13
commit-bot: I haz the power
Try job failure for 8093016-16001 (retry) on win_rel for step "compile" (clobber build). It's a ...
9 years, 2 months ago (2011-10-04 23:12:19 UTC) #14
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/8093016/11014
9 years, 2 months ago (2011-10-04 23:26:16 UTC) #15
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/8093016/11014
9 years, 2 months ago (2011-10-05 00:25:52 UTC) #16
commit-bot: I haz the power
9 years, 2 months ago (2011-10-05 02:51:52 UTC) #17
Change committed as 104054

Powered by Google App Engine
This is Rietveld 408576698