| Index: chrome/installer/util/installation_validator.h
|
| diff --git a/chrome/installer/util/installation_validator.h b/chrome/installer/util/installation_validator.h
|
| index 519718e68e8b76f89061a2690e689acfc8f0a879..191828fe5f7780745d3465aa5c9e09b1d72617bc 100644
|
| --- a/chrome/installer/util/installation_validator.h
|
| +++ b/chrome/installer/util/installation_validator.h
|
| @@ -37,6 +37,7 @@ class InstallationValidator {
|
| CHROME_FRAME_SINGLE = 0x04,
|
| CHROME_FRAME_MULTI = 0x08,
|
| CHROME_FRAME_READY_MODE = 0x10,
|
| + CHROME_APP_HOST = 0x20,
|
| };
|
| }; // class ProductBits
|
|
|
| @@ -59,6 +60,23 @@ class InstallationValidator {
|
| ProductBits::CHROME_FRAME_MULTI | ProductBits::CHROME_MULTI,
|
| CHROME_FRAME_READY_MODE_CHROME_MULTI =
|
| ProductBits::CHROME_FRAME_READY_MODE | ProductBits::CHROME_MULTI,
|
| + CHROME_APP_HOST =
|
| + ProductBits::CHROME_APP_HOST,
|
| + CHROME_APP_HOST_CHROME_FRAME_SINGLE =
|
| + ProductBits::CHROME_APP_HOST | ProductBits::CHROME_FRAME_SINGLE,
|
| + CHROME_APP_HOST_CHROME_FRAME_SINGLE_CHROME_MULTI =
|
| + ProductBits::CHROME_APP_HOST | ProductBits::CHROME_FRAME_SINGLE |
|
| + ProductBits::CHROME_MULTI,
|
| + CHROME_APP_HOST_CHROME_FRAME_MULTI =
|
| + ProductBits::CHROME_APP_HOST | ProductBits::CHROME_FRAME_MULTI,
|
| + CHROME_APP_HOST_CHROME_FRAME_MULTI_CHROME_MULTI =
|
| + ProductBits::CHROME_APP_HOST | ProductBits::CHROME_FRAME_MULTI |
|
| + ProductBits::CHROME_MULTI,
|
| + CHROME_APP_HOST_CHROME_MULTI =
|
| + ProductBits::CHROME_APP_HOST | ProductBits::CHROME_MULTI,
|
| + CHROME_APP_HOST_CHROME_MULTI_CHROME_FRAME_READY_MODE =
|
| + ProductBits::CHROME_APP_HOST | ProductBits::CHROME_MULTI |
|
| + ProductBits::CHROME_FRAME_READY_MODE,
|
| };
|
|
|
| // Validates |machine_state| at user or system level, returning true if valid.
|
| @@ -137,6 +155,24 @@ class InstallationValidator {
|
| const ProductState& product_state) const OVERRIDE;
|
| };
|
|
|
| + // Validation rules for Chrome App Host.
|
| + class ChromeAppHostRules : public ProductRules {
|
| + public:
|
| + virtual BrowserDistribution::Type distribution_type() const OVERRIDE;
|
| + virtual void AddUninstallSwitchExpectations(
|
| + const InstallationState& machine_state,
|
| + bool system_install,
|
| + const ProductState& product_state,
|
| + SwitchExpectations* expectations) const OVERRIDE;
|
| + virtual void AddRenameSwitchExpectations(
|
| + const InstallationState& machine_state,
|
| + bool system_install,
|
| + const ProductState& product_state,
|
| + SwitchExpectations* expectations) const OVERRIDE;
|
| + virtual bool UsageStatsAllowed(
|
| + const ProductState& product_state) const OVERRIDE;
|
| + };
|
| +
|
| // Validation rules for the multi-install Chrome binaries.
|
| class ChromeBinariesRules : public ProductRules {
|
| public:
|
|
|