Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Issue 10907178: Try to fix the possible bug in base::Time:Now() that can cause the crashing later in icu code calle… (Closed)

Created:
8 years, 3 months ago by jennyz
Modified:
8 years, 3 months ago
Reviewers:
brettw, sadrul
CC:
chromium-reviews, erikwright+watch_chromium.org, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Try to fix the possible bug in base::Time:Now() that can cause the crashing later in icu code called from ash tray TimeView::UpdateTextInternal() if the call to gettimeofday fails. BUG=147570 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156134

Patch Set 1 #

Total comments: 4

Patch Set 2 : Return null instead of zero for invalid Time::Now. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M ash/system/date/date_view.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M base/time_posix.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jennyz
8 years, 3 months ago (2012-09-11 17:58:31 UTC) #1
brettw
http://codereview.chromium.org/10907178/diff/1/ash/system/date/date_view.cc File ash/system/date/date_view.cc (right): http://codereview.chromium.org/10907178/diff/1/ash/system/date/date_view.cc#newcode187 ash/system/date/date_view.cc:187: if (now.ToInternalValue() == 0L) { Use now.is_null(). http://codereview.chromium.org/10907178/diff/1/base/time_posix.cc File ...
8 years, 3 months ago (2012-09-11 18:10:23 UTC) #2
jennyz
http://codereview.chromium.org/10907178/diff/1/ash/system/date/date_view.cc File ash/system/date/date_view.cc (right): http://codereview.chromium.org/10907178/diff/1/ash/system/date/date_view.cc#newcode187 ash/system/date/date_view.cc:187: if (now.ToInternalValue() == 0L) { On 2012/09/11 18:10:23, brettw ...
8 years, 3 months ago (2012-09-11 18:35:21 UTC) #3
brettw
lgtm
8 years, 3 months ago (2012-09-11 19:14:33 UTC) #4
sadrul
lgtm
8 years, 3 months ago (2012-09-11 21:25:34 UTC) #5
commit-bot: I haz the power
8 years, 3 months ago (2012-09-11 21:27:38 UTC) #6

Powered by Google App Engine
This is Rietveld 408576698