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

Issue 2652353003: Fix regression: empty tooltip appears in Linux and Chrome OS (Closed)

Created:
3 years, 11 months ago by chengx
Modified:
3 years, 10 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, brucedawson
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix regression: empty tooltip appears in Linux and Chrome OS After landing the tooltip fix as in crrev.com/2652833002, UI regression was captured in Linux and Chrome OS where empty tooltip shows up. It seems Windows has not have this issue. This CL fixes this regression. BUG=685078, 685408 Review-Url: https://codereview.chromium.org/2652353003 Cr-Commit-Position: refs/heads/master@{#446486} Committed: https://chromium.googlesource.com/chromium/src/+/6335c597c43363e29d6757d60aa34a895aa5398a

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add unit test. #

Patch Set 3 : Cancel the timer when tooltip text is set to empty. #

Total comments: 2

Patch Set 4 : More accurate timer API. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M ui/views/corewm/tooltip_controller.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/corewm/tooltip_controller_unittest.cc View 1 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (26 generated)
chengx
Hi sky@, sorry to bother you again. The CL about tooltip I checked-in yesterday caused ...
3 years, 11 months ago (2017-01-25 23:13:57 UTC) #12
sky
Can you add test coverage of this?
3 years, 11 months ago (2017-01-25 23:41:51 UTC) #13
sky
https://codereview.chromium.org/2652353003/diff/1/ui/views/corewm/tooltip_controller.cc File ui/views/corewm/tooltip_controller.cc (right): https://codereview.chromium.org/2652353003/diff/1/ui/views/corewm/tooltip_controller.cc#newcode330 ui/views/corewm/tooltip_controller.cc:330: if (!tooltip_window_ || tooltip_text_whitespace_trimmed_.empty()) Also, how do we end ...
3 years, 11 months ago (2017-01-25 23:43:21 UTC) #14
chengx
Unit test added. PTAL~ https://codereview.chromium.org/2652353003/diff/1/ui/views/corewm/tooltip_controller.cc File ui/views/corewm/tooltip_controller.cc (right): https://codereview.chromium.org/2652353003/diff/1/ui/views/corewm/tooltip_controller.cc#newcode330 ui/views/corewm/tooltip_controller.cc:330: if (!tooltip_window_ || tooltip_text_whitespace_trimmed_.empty()) On ...
3 years, 11 months ago (2017-01-26 01:16:24 UTC) #17
sky
Once the text is set empty shouldn't we cancel the timer? On Wed, Jan 25, ...
3 years, 11 months ago (2017-01-26 04:15:07 UTC) #20
chengx
> Once the text is set empty shouldn't we cancel the timer? I tried to ...
3 years, 11 months ago (2017-01-26 05:35:12 UTC) #21
sky
If you can reproduce the regression can't you determine why ShowTooltip() is being called when ...
3 years, 10 months ago (2017-01-26 18:25:35 UTC) #26
sky
https://codereview.chromium.org/2652353003/diff/40001/ui/views/corewm/tooltip_controller.cc File ui/views/corewm/tooltip_controller.cc (right): https://codereview.chromium.org/2652353003/diff/40001/ui/views/corewm/tooltip_controller.cc#newcode311 ui/views/corewm/tooltip_controller.cc:311: if (tooltip_defer_timer_.IsRunning()) { no {}
3 years, 10 months ago (2017-01-26 18:25:37 UTC) #27
chengx
On 2017/01/26 18:25:35, sky wrote: > If you can reproduce the regression can't you determine ...
3 years, 10 months ago (2017-01-26 21:04:03 UTC) #32
chengx
Verified in Linux and it works (the regression is gone).
3 years, 10 months ago (2017-01-26 21:07:13 UTC) #33
sky
LGTM - sorry for not realizing this earlier.
3 years, 10 months ago (2017-01-26 23:01:46 UTC) #34
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/2652353003/60001
3 years, 10 months ago (2017-01-26 23:04:19 UTC) #36
commit-bot: I haz the power
3 years, 10 months ago (2017-01-26 23:10:42 UTC) #39
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/6335c597c43363e29d6757d60aa3...

Powered by Google App Engine
This is Rietveld 408576698