summaryrefslogtreecommitdiffstats
path: root/base/time.h
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 02:43:20 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 02:43:20 +0000
commite2419084a9f703f8f1a754ab38b4fcfd61e08225 (patch)
tree7d6ffa10a2e712898fb7e874ddcf899fef74c1a4 /base/time.h
parent1ea7c844992d80d402b98f2fcc37d4be7121920d (diff)
downloadchromium_src-e2419084a9f703f8f1a754ab38b4fcfd61e08225.zip
chromium_src-e2419084a9f703f8f1a754ab38b4fcfd61e08225.tar.gz
chromium_src-e2419084a9f703f8f1a754ab38b4fcfd61e08225.tar.bz2
Fix a bug with parsing ftp directory listing lines.
BUG=49997 TEST=ftp_directory_listing_parser_windows_unittest.cc Review URL: http://codereview.chromium.org/3013029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/time.h')
-rw-r--r--base/time.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/time.h b/base/time.h
index 8d92e75..e885593 100644
--- a/base/time.h
+++ b/base/time.h
@@ -214,6 +214,11 @@ class Time {
int second; // Second within the current minute (0-59 plus leap
// seconds which may take it up to 60).
int millisecond; // Milliseconds within the current second (0-999)
+
+ // A cursory test for whether the data members are within their
+ // respective ranges. A 'true' return value does not guarantee the
+ // Exploded value can be successfully converted to a Time value.
+ bool HasValidValues() const;
};
// Contains the NULL time. Use Time::Now() to get the current time.