Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3352)

Unified Diff: chrome/installer/util/product.cc

Issue 12321061: Pulling user experiment code from BrowserDistribution to a new class. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Making user experiments unavailable for Chromium. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/installer/util/product.cc
diff --git a/chrome/installer/util/product.cc b/chrome/installer/util/product.cc
index bc3e6b3f8b93a9a4223250287edba44285e8a0b5..3b1134f464a13e87cde17cb9f40f3938661c5784 100644
--- a/chrome/installer/util/product.cc
+++ b/chrome/installer/util/product.cc
@@ -21,6 +21,7 @@
#include "chrome/installer/util/master_preferences.h"
#include "chrome/installer/util/master_preferences_constants.h"
#include "chrome/installer/util/product_operations.h"
+#include "chrome/installer/util/user_experiment.h"
using base::win::RegKey;
using installer::MasterPreferences;
@@ -163,4 +164,13 @@ void Product::AddDefaultShortcutProperties(
distribution_, target_exe, properties);
}
+void Product::LaunchUserExperiment(const base::FilePath& setup_path,
+ InstallStatus status,
+ bool system_level) const {
+ if (operations_->ShouldLaunchUserExperiment()) {
gab 2013/03/04 23:40:30 I'm really not a fan of having these two entry poi
grt (UTC plus 2) 2013/03/05 14:33:22 what i had in mind is: if (distribution_->HasUse
gab 2013/03/05 14:58:00 Ah ok, the downside is that callers have to rememb
huangs 2013/03/05 15:38:00 Personally I'd prefer NOT changing Operations, sin
grt (UTC plus 2) 2013/03/05 16:30:49 If you want to avoid creating stub implementations
huangs 2013/03/05 16:48:34 Okay, I'm for making ProductOperationsImpl! Let's
+ installer::user_experiment::LaunchUserExperiment(setup_path, status,
+ *this, system_level);
+ }
+}
+
} // namespace installer

Powered by Google App Engine
This is Rietveld 408576698