• motek@chromium.org's avatar
    Adds browser preferences to configure first-run flow on Windows 8. · eed73257
    motek@chromium.org authored
    - master_prefefrencs/installerdata file may now contain
      { "distribution": {
          "suppress_first_run_default_browser_prompt": true
        } } 
      to suppress the Win8+ first-run dialog that walks the
      user through making Chrome the default browser. 
      If the dialog is suppressed, the default browser
      butterbar/prompt appears on first run instead.
    
    - master_preferences/installerdata file may now contain
      { "browser": {
        "suppress_switch_to_metro_mode_on_set_default": true
      } }
      to suppress switching to metro mode on Win8+ immediately
      after Chrome is made the default browser via the first-run
      dialog.
    
    This CL also removes the non-dialog mode of 
    SetAsDefaultBrowserUI and fixes a problem where the dialog 
    would be shown only when master preferences were not given.
    
    
    BUG=135255,135256,135257
    TEST=Verify that modifiers described above act as 
    advertised in setup procedure on Win8. If both prefs are 
    absent, the program should show a modal set-default dialog
    and upon successful change restart Chrome *into the
    normal first-run flow* in Metro. Note that butter-bar set
    default is not expected to restart into metro.
    
    Review URL: https://chromiumcodereview.appspot.com/10702097
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149881 0039d316-1c4b-4281-b951-d872f2087c98
    eed73257
default_browser_prompt.cc 8.31 KB