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

Issue 1226643002: Welcome page changes for Windows 10 and over. (Closed)

Created:
5 years, 5 months ago by grt (UTC plus 2)
Modified:
5 years, 5 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Welcome page changes for Windows 10. * Show the welcome page on the first launch following OS upgrades to or past Windows 10 when Chrome is not the default browser unless the WelcomePageOnOSUpgradeEnabled policy setting is set to false or the welcome_page_on_os_upgrade_enabled distribution master_preferences value is set to false. * Suppress showing the signin promo during first-run on Windows 10 and instead show the welcome page before the NTP. BUG=505029 TEST=On Windows 8.1 and older, nothing changes. On Windows 10, the signin promo is no longer shown on first run; rather, the welcome page and the NTP are shown. On Windows 10, the welcome page is shown on the first ordinary launch (for all "On startup" settings except when an URL is provided on the command line) following an upgrade from an earlier version of Windows when Chrome is not the default browser. Committed: https://crrev.com/f14398c95a77206066cbab24b45070a85aba469a Cr-Commit-Position: refs/heads/master@{#338688}

Patch Set 1 : #

Patch Set 2 : support master_preferences and better policy tweaking #

Patch Set 3 : support launching from bg mode and passing browser_tests #

Patch Set 4 : allow ScopedAllowIO in startup_browser_creator_impl.cc #

Patch Set 5 : fix RestoreOnStartupURLsPolicySpecified #

Total comments: 88

Patch Set 6 : sync to position 337983 #

Patch Set 7 : partial comments #

Total comments: 4

Patch Set 8 : more comments #

Patch Set 9 : removed need for ScopedAllowIO #

Patch Set 10 : there is no StartupBrowserCreator on Android #

Patch Set 11 : simplified recording of welcome run complete #

Total comments: 33

Patch Set 12 : more msw comments #

Patch Set 13 : simplified WelcomeRunType #

Patch Set 14 : fix chromeos build #

Total comments: 2

Patch Set 15 : comment fix #

Total comments: 2

Patch Set 16 : rewording in policy_templates.json and sync to position 338549 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+487 lines, -68 lines) Patch
M chrome/browser/browser_process.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/first_run/first_run.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 2 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/first_run/first_run_unittest.cc View 1 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_promo.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 22 chunks +203 lines, -44 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 chunks +113 lines, -16 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/installer/util/master_preferences.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/installer/util/master_preferences_constants.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/installer/util/master_preferences_unittest.cc View 1 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 1 chunk +10 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +19 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 83 (35 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226643002/100001
5 years, 5 months ago (2015-07-04 22:54:31 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/74797) (exceeded global ...
5 years, 5 months ago (2015-07-04 23:47:23 UTC) #12
grt (UTC plus 2)
msw: please review chrome/browser/ui/startup gab: please review the first_run and installer/ stuff atwilson: please review ...
5 years, 5 months ago (2015-07-08 20:47:59 UTC) #16
grt (UTC plus 2)
+jochen: please review chrome/browser/chrome_browser_main.cc and PRESUBMIT.py. As noted in startup_browser_creator_impl.cc, StartupBrowserCreatorImpl::InitializeWelcomeRunType needs to check whether ...
5 years, 5 months ago (2015-07-08 20:59:27 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226643002/200001
5 years, 5 months ago (2015-07-08 22:21:05 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/42318) win_chromium_rel_ng on ...
5 years, 5 months ago (2015-07-08 23:53:33 UTC) #22
grt (UTC plus 2)
FYI to reviewers: the win trybot failure is http://crbug.com/508531 and is unrelated to this change.
5 years, 5 months ago (2015-07-09 14:57:06 UTC) #23
Alexei Svitkine (slow)
histograms.xml lgtm, did not look at anything else
5 years, 5 months ago (2015-07-09 17:22:17 UTC) #24
msw
https://codereview.chromium.org/1226643002/diff/200001/chrome/browser/ui/startup/startup_browser_creator.h File chrome/browser/ui/startup/startup_browser_creator.h (right): https://codereview.chromium.org/1226643002/diff/200001/chrome/browser/ui/startup/startup_browser_creator.h#newcode104 chrome/browser/ui/startup/startup_browser_creator.h:104: #if defined(OS_WIN) Why not define this on all platforms ...
5 years, 5 months ago (2015-07-09 17:51:31 UTC) #25
gab
As owner: c/b/first_run lgtm c/b/prefs lgtm w/ comment nit c/installer lgtm w/ comment nit In ...
5 years, 5 months ago (2015-07-09 18:05:13 UTC) #26
grt (UTC plus 2)
Thanks for the reviews. I've addressed some of the comments. Please take a look at ...
5 years, 5 months ago (2015-07-09 18:59:38 UTC) #27
Mattias Nissler (ping if slow)
policy and prefs bits LGTM
5 years, 5 months ago (2015-07-09 19:33:46 UTC) #28
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1226643002/diff/240001/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://codereview.chromium.org/1226643002/diff/240001/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode1024 chrome/browser/ui/startup/startup_browser_creator_impl.cc:1024: base::ThreadRestrictions::ScopedAllowIO allow_io; is it possible to move this check ...
5 years, 5 months ago (2015-07-10 09:03:31 UTC) #29
grt (UTC plus 2)
Thanks for the comment. See response below. https://codereview.chromium.org/1226643002/diff/240001/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://codereview.chromium.org/1226643002/diff/240001/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode1024 chrome/browser/ui/startup/startup_browser_creator_impl.cc:1024: base::ThreadRestrictions::ScopedAllowIO allow_io; ...
5 years, 5 months ago (2015-07-10 12:05:32 UTC) #30
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1226643002/diff/240001/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://codereview.chromium.org/1226643002/diff/240001/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode1024 chrome/browser/ui/startup/startup_browser_creator_impl.cc:1024: base::ThreadRestrictions::ScopedAllowIO allow_io; On 2015/07/10 at 12:05:31, grt wrote: > ...
5 years, 5 months ago (2015-07-10 12:12:51 UTC) #31
grt (UTC plus 2)
https://codereview.chromium.org/1226643002/diff/240001/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://codereview.chromium.org/1226643002/diff/240001/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode1024 chrome/browser/ui/startup/startup_browser_creator_impl.cc:1024: base::ThreadRestrictions::ScopedAllowIO allow_io; On 2015/07/10 12:12:51, jochen wrote: > On ...
5 years, 5 months ago (2015-07-10 12:17:31 UTC) #32
jochen (gone - plz use gerrit)
On 2015/07/10 at 12:17:31, grt wrote: > https://codereview.chromium.org/1226643002/diff/240001/chrome/browser/ui/startup/startup_browser_creator_impl.cc > File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): > > https://codereview.chromium.org/1226643002/diff/240001/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode1024 ...
5 years, 5 months ago (2015-07-10 12:19:39 UTC) #33
grt (UTC plus 2)
On 2015/07/10 12:19:39, jochen wrote: > On 2015/07/10 at 12:17:31, grt wrote: > > > ...
5 years, 5 months ago (2015-07-10 12:34:14 UTC) #34
jochen (gone - plz use gerrit)
On 2015/07/10 at 12:34:14, grt wrote: > On 2015/07/10 12:19:39, jochen wrote: > > On ...
5 years, 5 months ago (2015-07-10 12:39:53 UTC) #35
jochen (gone - plz use gerrit)
John, wdyt about the ScopedAllowIO here?
5 years, 5 months ago (2015-07-10 12:40:19 UTC) #37
grt (UTC plus 2)
Thinking about it a bit more -- it will be hit more than once for ...
5 years, 5 months ago (2015-07-10 14:06:55 UTC) #38
jochen (gone - plz use gerrit)
sgtm
5 years, 5 months ago (2015-07-10 14:16:14 UTC) #39
grt (UTC plus 2)
More comments addressed. msw and gab: Please see my question regarding SessionStartupPref::URLS and the FIRST_RUN_FIRST/ANY_FIRST_RUN ...
5 years, 5 months ago (2015-07-10 15:43:25 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226643002/280001
5 years, 5 months ago (2015-07-10 19:12:27 UTC) #43
grt (UTC plus 2)
-jam since the ScopedIOAllow is now gone. jochen, msw, gab: PTAL, taking into consideration that ...
5 years, 5 months ago (2015-07-10 19:14:24 UTC) #45
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/90483)
5 years, 5 months ago (2015-07-10 19:36:45 UTC) #47
msw
https://codereview.chromium.org/1226643002/diff/200001/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://codereview.chromium.org/1226643002/diff/200001/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode562 chrome/browser/ui/startup/startup_browser_creator_impl.cc:562: InitializeWelcomeRunType(urls_to_open); On 2015/07/10 15:43:24, grt wrote: > On 2015/07/09 ...
5 years, 5 months ago (2015-07-10 19:40:45 UTC) #48
grt (UTC plus 2)
On 2015/07/10 19:40:45, msw wrote: > https://codereview.chromium.org/1226643002/diff/200001/chrome/browser/ui/startup/startup_browser_creator_impl.cc > File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): > > https://codereview.chromium.org/1226643002/diff/200001/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode562 > ...
5 years, 5 months ago (2015-07-10 20:34:05 UTC) #49
grt (UTC plus 2)
PTAL https://codereview.chromium.org/1226643002/diff/200001/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://codereview.chromium.org/1226643002/diff/200001/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode562 chrome/browser/ui/startup/startup_browser_creator_impl.cc:562: InitializeWelcomeRunType(urls_to_open); On 2015/07/10 19:40:45, msw wrote: > On ...
5 years, 5 months ago (2015-07-10 20:35:12 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226643002/320001
5 years, 5 months ago (2015-07-10 20:36:44 UTC) #53
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-10 22:06:09 UTC) #55
msw
https://codereview.chromium.org/1226643002/diff/320001/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc File chrome/browser/ui/startup/startup_browser_creator_browsertest.cc (right): https://codereview.chromium.org/1226643002/diff/320001/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc#newcode275 chrome/browser/ui/startup/startup_browser_creator_browsertest.cc:275: if (IsWindows10OrNewer()) { Just add the welcome page url ...
5 years, 5 months ago (2015-07-10 22:07:32 UTC) #56
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226643002/340001
5 years, 5 months ago (2015-07-11 12:15:56 UTC) #59
grt (UTC plus 2)
https://codereview.chromium.org/1226643002/diff/320001/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc File chrome/browser/ui/startup/startup_browser_creator_browsertest.cc (right): https://codereview.chromium.org/1226643002/diff/320001/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc#newcode275 chrome/browser/ui/startup/startup_browser_creator_browsertest.cc:275: if (IsWindows10OrNewer()) { On 2015/07/10 22:07:31, msw wrote: > ...
5 years, 5 months ago (2015-07-11 12:16:08 UTC) #60
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/37565) (exceeded global ...
5 years, 5 months ago (2015-07-11 12:42:29 UTC) #62
jochen (gone - plz use gerrit)
lgtm
5 years, 5 months ago (2015-07-13 11:11:31 UTC) #63
grt (UTC plus 2)
https://codereview.chromium.org/1226643002/diff/320001/chrome/browser/ui/startup/startup_browser_creator_impl.cc File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right): https://codereview.chromium.org/1226643002/diff/320001/chrome/browser/ui/startup/startup_browser_creator_impl.cc#newcode972 chrome/browser/ui/startup/startup_browser_creator_impl.cc:972: ? WelcomeRunType::FIRST_RUN_FIRST On 2015/07/11 12:16:08, grt wrote: > On ...
5 years, 5 months ago (2015-07-13 15:10:08 UTC) #64
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226643002/380001
5 years, 5 months ago (2015-07-13 15:14:17 UTC) #67
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/77631) (exceeded global ...
5 years, 5 months ago (2015-07-13 16:21:28 UTC) #69
msw
lgtm with a nit, thanks for bearing with all my comments and questions. I really ...
5 years, 5 months ago (2015-07-13 19:16:06 UTC) #70
grt (UTC plus 2)
Thanks for the thorough review. I'll keep this class in mind when I have an ...
5 years, 5 months ago (2015-07-13 19:29:53 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226643002/400001
5 years, 5 months ago (2015-07-13 21:25:08 UTC) #74
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/78345)
5 years, 5 months ago (2015-07-13 21:41:17 UTC) #76
Andrew T Wilson (Slow)
policy_templates.json LGTM https://codereview.chromium.org/1226643002/diff/400001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1226643002/diff/400001/components/policy/resources/policy_templates.json#newcode7411 components/policy/resources/policy_templates.json:7411: If this policy is enabled and set ...
5 years, 5 months ago (2015-07-14 13:52:44 UTC) #77
grt (UTC plus 2)
Thanks for taking a look. https://codereview.chromium.org/1226643002/diff/400001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1226643002/diff/400001/components/policy/resources/policy_templates.json#newcode7411 components/policy/resources/policy_templates.json:7411: If this policy is ...
5 years, 5 months ago (2015-07-14 14:03:20 UTC) #78
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226643002/420001
5 years, 5 months ago (2015-07-14 14:03:56 UTC) #81
commit-bot: I haz the power
Committed patchset #16 (id:420001)
5 years, 5 months ago (2015-07-14 15:11:56 UTC) #82
commit-bot: I haz the power
5 years, 5 months ago (2015-07-14 15:12:53 UTC) #83
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/f14398c95a77206066cbab24b45070a85aba469a
Cr-Commit-Position: refs/heads/master@{#338688}

Powered by Google App Engine
This is Rietveld 408576698