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

Unified Diff: chrome/install_static/product_install_details.cc

Issue 2601443002: Remove multi-install from install_static. (Closed)
Patch Set: Created 4 years 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/install_static/product_install_details.cc
diff --git a/chrome/install_static/product_install_details.cc b/chrome/install_static/product_install_details.cc
index 9af5b2fca6fa4903242e64e899a66d7ff0aea2fb..cc7f012ece938f11ea7bd6c1485f93e8039aed2e 100644
--- a/chrome/install_static/product_install_details.cc
+++ b/chrome/install_static/product_install_details.cc
@@ -119,15 +119,6 @@ std::wstring GetInstallSuffix(const std::wstring& exe_path) {
(name - scan) - kProductPathNameLength);
}
-bool IsMultiInstall(const InstallConstants& mode, bool system_level) {
- assert(mode.supports_multi_install);
- std::wstring args;
- return nt::QueryRegValueSZ(system_level ? nt::HKLM : nt::HKCU, nt::WOW6432,
- GetClientStateKeyPath(mode.app_guid).c_str(),
- L"UninstallArguments", &args) &&
- args.find(L"--multi-install") != std::wstring::npos;
-}
-
std::unique_ptr<PrimaryInstallDetails> MakeProductDetails(
const std::wstring& exe_path) {
std::unique_ptr<PrimaryInstallDetails> details(new PrimaryInstallDetails());
@@ -135,13 +126,10 @@ std::unique_ptr<PrimaryInstallDetails> MakeProductDetails(
const InstallConstants* mode = FindInstallMode(GetInstallSuffix(exe_path));
const bool system_level =
mode->supports_system_level && PathIsInProgramFiles(exe_path);
- const bool multi_install =
- mode->supports_multi_install && IsMultiInstall(*mode, system_level);
details->set_mode(mode);
details->set_system_level(system_level);
- details->set_multi_install(multi_install);
- details->set_channel(DetermineChannel(*mode, system_level, multi_install));
+ details->set_channel(DetermineChannel(*mode, system_level));
return details;
}

Powered by Google App Engine
This is Rietveld 408576698