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

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: *Only* making ProductOperation to use string16 instead of std::wstring; wrapping changes. Created 7 years, 9 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..bb8c9637548b914d276d83dd37ddefd6713a7e65 100644
--- a/chrome/installer/util/product.cc
+++ b/chrome/installer/util/product.cc
@@ -163,4 +163,16 @@ void Product::AddDefaultShortcutProperties(
distribution_, target_exe, properties);
}
+void Product::LaunchUserExperiment(const base::FilePath& setup_path,
+ InstallStatus status,
+ bool system_level) const {
+ if (distribution_->HasUserExperiments()) {
+ VLOG(1) << "LaunchUserExperiment status: " << status << " product: "
+ << distribution_->GetAppShortCutName()
+ << " system_level: " << system_level;
+ operations_->LaunchUserExperiment(
+ setup_path, options_, status, system_level);
+ }
+}
+
} // namespace installer

Powered by Google App Engine
This is Rietveld 408576698