diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-23 19:43:00 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-23 19:43:00 +0000 |
commit | d2cf63114443ab592bee4acaa04a431356a23cd8 (patch) | |
tree | 59ea6950dafc151d359d585b5243abf0eae1233d /chrome/installer/setup/main.cc | |
parent | 89c3317ba1adf8d974fc3b649ea6ac00ef6c0dae (diff) | |
download | chromium_src-d2cf63114443ab592bee4acaa04a431356a23cd8.zip chromium_src-d2cf63114443ab592bee4acaa04a431356a23cd8.tar.gz chromium_src-d2cf63114443ab592bee4acaa04a431356a23cd8.tar.bz2 |
Toast experiment: I need to re-laucnh chrome because google_update likes setup to finish fast.
- Added new cmd line flag to setup.exe: --inactive-user-toast
BUG= b/1484308
TEST = see the bug
Review URL: http://codereview.chromium.org/144015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19044 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/setup/main.cc')
-rw-r--r-- | chrome/installer/setup/main.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/installer/setup/main.cc b/chrome/installer/setup/main.cc index 752fa59..0a936ac 100644 --- a/chrome/installer/setup/main.cc +++ b/chrome/installer/setup/main.cc @@ -489,11 +489,11 @@ installer_util::InstallStatus ShowEULADialog(const std::wstring& inner_frame) { bool HandleNonInstallCmdLineOptions(const CommandLine& cmd_line, bool system_install, int& exit_code) { + BrowserDistribution* dist = BrowserDistribution::GetDistribution(); if (cmd_line.HasSwitch(installer_util::switches::kUpdateSetupExe)) { // First to handle situation where the current process hangs or crashes, // we pre-emptively set a flag in registry to get full installer next time. installer_util::InstallStatus status = installer_util::SETUP_PATCH_FAILED; - BrowserDistribution* dist = BrowserDistribution::GetDistribution(); dist->UpdateDiffInstallStatus(system_install, true, status); // If --update-setup-exe command line option is given, we apply the given @@ -593,8 +593,11 @@ bool HandleNonInstallCmdLineOptions(const CommandLine& cmd_line, installer_setup::DeleteChromeRegistrationKeys(HKEY_LOCAL_MACHINE, tmp); exit_code = tmp; return true; + } else if (cmd_line.HasSwitch(installer_util::switches::kInactiveUserToast)) { + // Launch the inactive user toast experiment. + dist->InactiveUserToastExperiment(); + return true; } - return false; } |