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

Issue 11155002: views: Fix progress bar tooltip text function. (Closed)

Created:
8 years, 2 months ago by tfarina
Modified:
8 years, 2 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, sky
Visibility:
Public.

Description

views: Fix progress bar tooltip text function. We should not handle DCHECK failures, read http://dev.chromium.org/developers/coding-style#TOC-CHECK-DCHECK-and-NOTREACHED- for more information. R=pkasting@chromium.org TBR=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=162448

Patch Set 1 #

Patch Set 2 : fix unittest #

Total comments: 5

Patch Set 3 : fix review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -7 lines) Patch
M ui/views/controls/progress_bar.cc View 1 2 2 chunks +1 line, -5 lines 0 comments Download
M ui/views/controls/progress_bar_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
tfarina
Hi Peter, can you check this to me? Thanks.
8 years, 2 months ago (2012-10-14 22:47:04 UTC) #1
Peter Kasting
http://codereview.chromium.org/11155002/diff/3001/ui/views/controls/progress_bar.cc File ui/views/controls/progress_bar.cc (left): http://codereview.chromium.org/11155002/diff/3001/ui/views/controls/progress_bar.cc#oldcode171 ui/views/controls/progress_bar.cc:171: DCHECK(tooltip); Why remove this? http://codereview.chromium.org/11155002/diff/3001/ui/views/controls/progress_bar.cc File ui/views/controls/progress_bar.cc (right): http://codereview.chromium.org/11155002/diff/3001/ui/views/controls/progress_bar.cc#newcode171 ...
8 years, 2 months ago (2012-10-15 19:03:10 UTC) #2
tfarina
http://codereview.chromium.org/11155002/diff/3001/ui/views/controls/progress_bar.cc File ui/views/controls/progress_bar.cc (right): http://codereview.chromium.org/11155002/diff/3001/ui/views/controls/progress_bar.cc#newcode171 ui/views/controls/progress_bar.cc:171: if (tooltip_text_.empty()) On 2012/10/15 19:03:10, Peter Kasting wrote: > ...
8 years, 2 months ago (2012-10-15 19:15:49 UTC) #3
Peter Kasting
http://codereview.chromium.org/11155002/diff/3001/ui/views/controls/progress_bar.cc File ui/views/controls/progress_bar.cc (right): http://codereview.chromium.org/11155002/diff/3001/ui/views/controls/progress_bar.cc#newcode171 ui/views/controls/progress_bar.cc:171: if (tooltip_text_.empty()) As long as the callers work fine ...
8 years, 2 months ago (2012-10-15 19:19:54 UTC) #4
Peter Kasting
On 2012/10/15 19:19:54, Peter Kasting wrote: > However I wonder if the better fix is ...
8 years, 2 months ago (2012-10-15 19:21:50 UTC) #5
tfarina
Peter, could you check my changes again? Thanks.
8 years, 2 months ago (2012-10-15 20:16:47 UTC) #6
Peter Kasting
LGTM. Consider filing a bug to do the API simplification I suggested.
8 years, 2 months ago (2012-10-15 20:19:49 UTC) #7
tfarina
On 2012/10/15 20:19:49, Peter Kasting wrote: > LGTM. Consider filing a bug to do the ...
8 years, 2 months ago (2012-10-15 20:25:03 UTC) #8
tfarina
8 years, 2 months ago (2012-10-17 17:44:30 UTC) #9
TBRing sky...

Powered by Google App Engine
This is Rietveld 408576698