Index: chrome/installer/setup/setup_main.cc |
diff --git a/chrome/installer/setup/setup_main.cc b/chrome/installer/setup/setup_main.cc |
index 12fd98d907ef58013a7723727b809ffd55c2436a..32c1b9ec8097b619ae8d64e7d45e0434d3590a73 100644 |
--- a/chrome/installer/setup/setup_main.cc |
+++ b/chrome/installer/setup/setup_main.cc |
@@ -60,6 +60,7 @@ |
#include "chrome/installer/util/master_preferences_constants.h" |
#include "chrome/installer/util/self_cleaning_temp_dir.h" |
#include "chrome/installer/util/shell_util.h" |
+#include "chrome/installer/util/user_experiment.h" |
#include "chrome/installer/util/util_constants.h" |
#include "installer_util_strings.h" // NOLINT |
@@ -923,7 +924,7 @@ installer::InstallStatus InstallProductsHelper( |
for (Products::const_iterator it = products.begin(); it < products.end(); |
++it) { |
const Product& product = **it; |
- product.distribution()->LaunchUserExperiment(setup_path, |
+ installer::UserExperiment::LaunchUserExperiment(setup_path, |
grt (UTC plus 2)
2013/02/22 16:47:56
only call this for Google Chrome (not for Chromium
gab
2013/02/22 19:44:53
Alternatively we could make LaunchUserExperiment a
huangs
2013/02/22 20:32:37
It seems Canary *does* call the experiment, since
huangs
2013/02/22 20:32:37
I ended up defining
enum UserExperiment::Experime
gab
2013/02/25 22:09:53
I don't like the paradigm:
if (ShouldIDoCrazyThin
huangs
2013/02/26 03:22:25
If there are expensive initialization needed, they
gab
2013/02/26 15:33:34
Sure.
huangs
2013/02/26 16:44:11
Done (changed to *IfRequired()).
|
install_status, *installer_version, product, system_install); |
} |
} |
@@ -1429,8 +1430,8 @@ bool HandleNonInstallCmdLineOptions(const InstallationState& original_state, |
++it) { |
const Product& product = **it; |
BrowserDistribution* browser_dist = product.distribution(); |
- browser_dist->InactiveUserToastExperiment( |
- flavor, ASCIIToUTF16(experiment_group), product, |
+ installer::UserExperiment::InactiveUserToastExperiment( |
+ browser_dist, flavor, ASCIIToUTF16(experiment_group), product, |
installer_state->target_path()); |
} |
} |
@@ -1449,9 +1450,8 @@ bool HandleNonInstallCmdLineOptions(const InstallationState& original_state, |
<< browser_dist->GetAppShortCutName() |
<< " found for system-level toast."; |
} else { |
- browser_dist->LaunchUserExperiment(cmd_line.GetProgram(), |
- installer::REENTRY_SYS_UPDATE, |
- installed_version, product, true); |
+ installer::UserExperiment::LaunchUserExperiment(cmd_line.GetProgram(), |
+ installer::REENTRY_SYS_UPDATE, installed_version, product, true); |
} |
} |
} else if (cmd_line.HasSwitch( |