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

Issue 2745233002: base: Make TimeDurationFormat* report failures. (Closed)

Created:
3 years, 9 months ago by Daniel Erat
Modified:
3 years, 9 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

Description

base: Make TimeDurationFormat* report failures. Update base::TimeDurationFormat() and base::TimeDurationFormatWithSeconds() to return boolean "success" values and use out-params to return formatted strings. ICU errors were formerly swallowed, which makes it impossible for the UI to handle them gracefully or for developers to investigate their causes. BUG=698802, 677043 TBR=jshin@chromium.org NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2734883003 Cr-Commit-Position: refs/heads/master@{#455144} (cherry picked from commit efcd30ca164e0e1bbcfe402840d8c23aa9d40fd9) Review-Url: https://codereview.chromium.org/2745233002 . Cr-Commit-Position: refs/branch-heads/2987@{#818} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/01ae29ee6c467754119319d62513e97085eafa96

Patch Set 1 #

Patch Set 2 : try again #

Patch Set 3 : remove accidentally-added code #

Patch Set 4 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -48 lines) Patch
M ash/common/system/chromeos/power/battery_notification.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M ash/common/system/chromeos/power/power_status_view.cc View 1 chunk +5 lines, -1 line 0 comments Download
M base/i18n/time_formatting.h View 2 chunks +12 lines, -8 lines 0 comments Download
M base/i18n/time_formatting.cc View 1 2 3 chunks +33 lines, -6 lines 0 comments Download
M base/i18n/time_formatting_unittest.cc View 5 chunks +53 lines, -29 lines 0 comments Download
M chrome/browser/ui/task_manager/task_manager_table_model.cc View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2745233002/40001
3 years, 9 months ago (2017-03-13 22:34:08 UTC) #7
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 9 months ago (2017-03-13 22:34:10 UTC) #9
Daniel Erat
lgtm
3 years, 9 months ago (2017-03-13 22:56:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2745233002/40001
3 years, 9 months ago (2017-03-13 22:59:00 UTC) #12
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 9 months ago (2017-03-13 22:59:02 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2745233002/40001
3 years, 9 months ago (2017-03-13 23:05:14 UTC) #17
Daniel Erat
3 years, 9 months ago (2017-03-13 23:21:15 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
01ae29ee6c467754119319d62513e97085eafa96 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698