summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/installation_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer/util/installation_state.h')
-rw-r--r--chrome/installer/util/installation_state.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/installer/util/installation_state.h b/chrome/installer/util/installation_state.h
index ed58a8a..1ced729 100644
--- a/chrome/installer/util/installation_state.h
+++ b/chrome/installer/util/installation_state.h
@@ -65,6 +65,12 @@ class ProductState {
// awaiting update; may be empty.
const std::wstring& rename_cmd() const { return rename_cmd_; }
+ // Returns true and populates |usagestats| if the product has such a value;
+ // otherwise, returns false and does not modify |usagestats|. Expected values
+ // are 0 (false) and 1 (true), although |usagestats| is given whatever is
+ // found.
+ bool GetUsageStats(DWORD* usagestats) const;
+
// True if the "msi" value in the ClientState key is present and non-zero.
bool is_msi() const { return msi_; }
@@ -94,8 +100,10 @@ class ProductState {
std::wstring rename_cmd_;
CommandLine uninstall_command_;
AppCommands commands_;
+ DWORD usagestats_;
bool msi_;
bool multi_install_;
+ bool has_usagestats_;
private:
friend class InstallationState;