Welcome page changes for Windows 10.
commitf14398c95a77206066cbab24b45070a85aba469a
authorgrt <grt@chromium.org>
Tue, 14 Jul 2015 15:11:44 +0000 (14 08:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 14 Jul 2015 15:12:16 +0000 (14 15:12 +0000)
tree99052aad604bbe18966cc8795f832137906256d2
parent98dd4e8b6b6f42dbc9734a4c834c8471d9079224
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.

Review URL: https://codereview.chromium.org/1226643002

Cr-Commit-Position: refs/heads/master@{#338688}
26 files changed:
chrome/browser/browser_process.h
chrome/browser/browser_process_impl.cc
chrome/browser/browser_process_impl.h
chrome/browser/chrome_browser_main.cc
chrome/browser/first_run/first_run.cc
chrome/browser/first_run/first_run.h
chrome/browser/first_run/first_run_unittest.cc
chrome/browser/policy/configuration_policy_handler_list_factory.cc
chrome/browser/prefs/browser_prefs.cc
chrome/browser/signin/signin_promo.cc
chrome/browser/ui/startup/startup_browser_creator.cc
chrome/browser/ui/startup/startup_browser_creator.h
chrome/browser/ui/startup/startup_browser_creator_browsertest.cc
chrome/browser/ui/startup/startup_browser_creator_impl.cc
chrome/browser/ui/startup/startup_browser_creator_impl.h
chrome/common/pref_names.cc
chrome/common/pref_names.h
chrome/installer/util/master_preferences.h
chrome/installer/util/master_preferences_constants.cc
chrome/installer/util/master_preferences_constants.h
chrome/installer/util/master_preferences_unittest.cc
chrome/test/base/testing_browser_process.cc
chrome/test/base/testing_browser_process.h
chrome/test/data/policy/policy_test_cases.json
components/policy/resources/policy_templates.json
tools/metrics/histograms/histograms.xml