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

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: Undoing ...IfRequired() suffix; using in BrowserDistribution and Product for dispatching. 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()) {
+ installer::user_experiment::LaunchUserExperiment(setup_path, status,
+ *this, system_level);
+ }
+}
+
} // namespace installer

Powered by Google App Engine
This is Rietveld 408576698