Commit b973d70e authored by Greg Thompson's avatar Greg Thompson Committed by Commit Bot

Don't run inactive user experiments for in-use updates.

BUG=717091

Change-Id: Ie5f53cabef12dd0f8cd4ac368789bb19f381d10c
Reviewed-on: https://chromium-review.googlesource.com/795930Reviewed-by: default avatarPatrick Monette <pmonette@chromium.org>
Commit-Queue: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#520216}
parent 7da6ada2
...@@ -1437,9 +1437,10 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE prev_instance, ...@@ -1437,9 +1437,10 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE prev_instance,
&installer_state, &installer_directory); &installer_state, &installer_directory);
DoLegacyCleanups(installer_state, install_status); DoLegacyCleanups(installer_state, install_status);
// It may be time to kick off an experiment if this was a successful update. // It may be time to kick off an experiment if this was a successful update
if ((install_status == installer::NEW_VERSION_UPDATED || // and Chrome was not in use (since the experiment only applies to inactive
install_status == installer::IN_USE_UPDATED) && // installs).
if (install_status == installer::NEW_VERSION_UPDATED &&
installer::ShouldRunUserExperiment(installer_state)) { installer::ShouldRunUserExperiment(installer_state)) {
installer::BeginUserExperiment( installer::BeginUserExperiment(
installer_state, installer_directory.Append(setup_exe.BaseName()), installer_state, installer_directory.Append(setup_exe.BaseName()),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment