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

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: 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/product.cc
diff --git a/chrome/installer/util/product.cc b/chrome/installer/util/product.cc
index bc3e6b3f8b93a9a4223250287edba44285e8a0b5..2fc492c63e50b7b46ce275253d2393ae0a8005f9 100644
--- a/chrome/installer/util/product.cc
+++ b/chrome/installer/util/product.cc
@@ -16,7 +16,6 @@
#include "chrome/installer/util/chrome_browser_sxs_operations.h"
#include "chrome/installer/util/chrome_frame_operations.h"
#include "chrome/installer/util/google_update_constants.h"
-#include "chrome/installer/util/helper.h"
#include "chrome/installer/util/install_util.h"
#include "chrome/installer/util/master_preferences.h"
#include "chrome/installer/util/master_preferences_constants.h"
@@ -63,7 +62,7 @@ void Product::InitializeFromUninstallCommand(
}
void Product::GetUserDataPaths(std::vector<base::FilePath>* paths) const {
- GetChromeUserDataPaths(distribution_, paths);
+ distribution_->GetUserDataPaths(paths);
}
bool Product::LaunchChrome(const base::FilePath& application_path) const {
@@ -163,4 +162,13 @@ void Product::AddDefaultShortcutProperties(
distribution_, target_exe, properties);
}
+void Product::LaunchUserExperiment(const base::FilePath& setup_path,
+ InstallStatus status,
+ bool system_level) const {
+ if (distribution_->HasUserExperiments()) {
+ operations_->LaunchUserExperiment(
+ setup_path, options_, distribution_, status, system_level);
+ }
+}
+
} // namespace installer

Powered by Google App Engine
This is Rietveld 408576698