From d2cf63114443ab592bee4acaa04a431356a23cd8 Mon Sep 17 00:00:00 2001 From: "cpu@google.com" <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> Date: Tue, 23 Jun 2009 19:43:00 +0000 Subject: 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 --- chrome/installer/setup/main.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'chrome/installer/setup/main.cc') 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; } -- cgit v1.1