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

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

Issue 6541029: Add product-specific flags to the rename command in the registry. This fixes... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/installation_validator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/installation_validator.cc
===================================================================
--- chrome/installer/util/installation_validator.cc (revision 75381)
+++ chrome/installer/util/installation_validator.cc (working copy)
@@ -21,7 +21,7 @@
return BrowserDistribution::CHROME_BROWSER;
}
-void InstallationValidator::ChromeRules::AddUninstallSwitchExpectations(
+void InstallationValidator::ChromeRules::AddProductSwitchExpectations(
const InstallationState& machine_state,
bool system_install,
const ProductState& product_state,
@@ -50,7 +50,7 @@
return BrowserDistribution::CHROME_FRAME;
}
-void InstallationValidator::ChromeFrameRules::AddUninstallSwitchExpectations(
+void InstallationValidator::ChromeFrameRules::AddProductSwitchExpectations(
const InstallationState& machine_state,
bool system_install,
const ProductState& product_state,
@@ -228,9 +228,9 @@
ctx.system_install));
expected.push_back(std::make_pair(std::string(switches::kMultiInstall),
is_multi_install));
- ctx.rules.AddUninstallSwitchExpectations(ctx.machine_state,
- ctx.system_install,
- ctx.state, &expected);
+ ctx.rules.AddProductSwitchExpectations(ctx.machine_state,
+ ctx.system_install,
+ ctx.state, &expected);
ValidateCommandExpectations(ctx, command, expected, source, is_valid);
}
@@ -253,6 +253,9 @@
ctx.system_install));
expected.push_back(std::make_pair(std::string(switches::kMultiInstall),
ctx.state.is_multi_install()));
+ ctx.rules.AddProductSwitchExpectations(ctx.machine_state,
+ ctx.system_install,
+ ctx.state, &expected);
ValidateCommandExpectations(ctx, command, expected, "in-use renamer",
is_valid);
« no previous file with comments | « chrome/installer/util/installation_validator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698