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

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

Issue 2618583005: Remove support for non-browser products from InstallationState and ProductState. (Closed)
Patch Set: sync to position 442664 Created 3 years, 11 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
« no previous file with comments | « chrome/installer/util/install_util.h ('k') | chrome/installer/util/installation_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/install_util.cc
diff --git a/chrome/installer/util/install_util.cc b/chrome/installer/util/install_util.cc
index 77d883989b93063a13be407dc5c14281010f1d70..555a39d97d75cc2aded5479fdd41a585eca90486 100644
--- a/chrome/installer/util/install_util.cc
+++ b/chrome/installer/util/install_util.cc
@@ -164,13 +164,10 @@ bool InstallUtil::ExecuteExeAsAdmin(const base::CommandLine& cmd,
return success;
}
-base::CommandLine InstallUtil::GetChromeUninstallCmd(
- bool system_install,
- BrowserDistribution::Type distribution_type) {
+base::CommandLine InstallUtil::GetChromeUninstallCmd(bool system_install) {
ProductState state;
- if (state.Initialize(system_install, distribution_type)) {
+ if (state.Initialize(system_install))
return state.uninstall_command();
- }
return base::CommandLine(base::CommandLine::NO_PROGRAM);
}
@@ -324,9 +321,8 @@ void InstallUtil::ResetIsPerUserInstallForTest() {
}
bool InstallUtil::IsMultiInstall(bool system_install) {
- BrowserDistribution* dist = BrowserDistribution::GetDistribution();
ProductState state;
- return state.Initialize(system_install, dist) && state.is_multi_install();
+ return state.Initialize(system_install) && state.is_multi_install();
}
bool CheckIsChromeSxSProcess() {
« no previous file with comments | « chrome/installer/util/install_util.h ('k') | chrome/installer/util/installation_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698