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

Unified Diff: chrome/installer/util/chrome_browser_operations.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: Adding GetUserDataPaths() to BrowserDistribution; replacing Product with other params in LaunchUser… 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/chrome_browser_operations.cc
diff --git a/chrome/installer/util/chrome_browser_operations.cc b/chrome/installer/util/chrome_browser_operations.cc
index 1f232616217710ca532553f70cad7f32384b8c13..354573b5b3941409b4f16ad84fc04736c47ca906 100644
--- a/chrome/installer/util/chrome_browser_operations.cc
+++ b/chrome/installer/util/chrome_browser_operations.cc
@@ -16,6 +16,7 @@
#include "chrome/installer/util/master_preferences.h"
#include "chrome/installer/util/master_preferences_constants.h"
#include "chrome/installer/util/shell_util.h"
+#include "chrome/installer/util/user_experiment.h"
#include "chrome/installer/util/util_constants.h"
namespace installer {
@@ -136,4 +137,15 @@ void ChromeBrowserOperations::AddDefaultShortcutProperties(
properties->set_description(dist->GetAppDescription());
}
+void ChromeBrowserOperations::LaunchUserExperiment(
+ const base::FilePath& setup_path,
+ const std::set<std::wstring>& options,
+ BrowserDistribution* dist,
+ InstallStatus status,
+ bool system_level) const {
+ CommandLine base_command(setup_path);
+ AppendProductFlags(options, &base_command);
+ installer::LaunchUserExperiment(base_command, dist, status, system_level);
+}
+
} // namespace installer

Powered by Google App Engine
This is Rietveld 408576698