summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/version.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer/util/version.h')
-rw-r--r--chrome/installer/util/version.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/installer/util/version.h b/chrome/installer/util/version.h
index 72e8271..e237260 100644
--- a/chrome/installer/util/version.h
+++ b/chrome/installer/util/version.h
@@ -11,6 +11,7 @@
namespace installer {
+// TODO(tommi): We should be using the Version class from base.
class Version {
public:
virtual ~Version();
@@ -24,6 +25,10 @@ class Version {
return version_str_;
}
+ bool IsEqual(const Version& other) const {
+ return version_str_ == other.GetString();
+ }
+
// Assume that the version string is specified by four integers separated
// by character '.'. Return NULL if string is not of this format.
// Caller is responsible for freeing the Version object once done.