summaryrefslogtreecommitdiffstats
path: root/base/version.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/version.cc')
-rw-r--r--base/version.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/version.cc b/base/version.cc
index c25b293..fe224eb 100644
--- a/base/version.cc
+++ b/base/version.cc
@@ -11,6 +11,13 @@
#include "base/utf_string_conversions.h"
// static
+Version* Version::GetVersionFromString(const std::wstring& version_str) {
+ if (!IsStringASCII(version_str))
+ return NULL;
+ return GetVersionFromString(WideToUTF8(version_str));
+}
+
+// static
Version* Version::GetVersionFromString(const std::string& version_str) {
Version* vers = new Version();
if (vers->InitFromString(version_str)) {