summaryrefslogtreecommitdiffstats
path: root/base/version.h
diff options
context:
space:
mode:
authorwfh <wfh@chromium.org>2015-03-09 18:32:59 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-10 01:34:02 +0000
commitbf68f4d5ba5c035cf1aaaa4ee5915cd3e7c15327 (patch)
treeb41b76e2441a6723fc9b2bcb2c9199f6317bdb29 /base/version.h
parent5ddb1905aa591a2bfa6ab43d7fe2226e4cba6d81 (diff)
downloadchromium_src-bf68f4d5ba5c035cf1aaaa4ee5915cd3e7c15327.zip
chromium_src-bf68f4d5ba5c035cf1aaaa4ee5915cd3e7c15327.tar.gz
chromium_src-bf68f4d5ba5c035cf1aaaa4ee5915cd3e7c15327.tar.bz2
Support 32-bit subversion fields in base::Version.
BUG=464610 TEST=base_unittests Review URL: https://codereview.chromium.org/985573003 Cr-Commit-Position: refs/heads/master@{#319806}
Diffstat (limited to 'base/version.h')
-rw-r--r--base/version.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/version.h b/base/version.h
index b3012eb..814acaa 100644
--- a/base/version.h
+++ b/base/version.h
@@ -5,6 +5,7 @@
#ifndef BASE_VERSION_H_
#define BASE_VERSION_H_
+#include <stdint.h>
#include <string>
#include <vector>
@@ -57,10 +58,10 @@ class BASE_EXPORT Version {
// Return the string representation of this version.
const std::string GetString() const;
- const std::vector<uint16>& components() const { return components_; }
+ const std::vector<uint32_t>& components() const { return components_; }
private:
- std::vector<uint16> components_;
+ std::vector<uint32_t> components_;
};
} // namespace base