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

Issue 2844933003: [Ash] Disallow calling HoverHighlightView::SetSubText() with an empty string (Closed)

Created:
3 years, 7 months ago by tdanderson
Modified:
3 years, 7 months ago
Reviewers:
mohsen
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Ash] Disallow calling HoverHighlightView::SetSubText() with an empty string SetSubText() in HoverHighlight view should not be called if the parameter string is empty, otherwise multi-line rows in the system menu will have the incorrect layout of their primary text. BUG=715615 TEST=manual Review-Url: https://codereview.chromium.org/2844933003 Cr-Commit-Position: refs/heads/master@{#467813} Committed: https://chromium.googlesource.com/chromium/src/+/f8ef156d997fe415dfb94b4917a2a6ed648d626b

Patch Set 1 #

Total comments: 2

Patch Set 2 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M ash/system/tray/hover_highlight_view.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ash/system/tray/hover_highlight_view.cc View 1 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 18 (12 generated)
tdanderson
mohsen@ can you please take a look?
3 years, 7 months ago (2017-04-27 18:54:46 UTC) #4
mohsen
https://codereview.chromium.org/2844933003/diff/1/ash/system/tray/hover_highlight_view.cc File ash/system/tray/hover_highlight_view.cc (right): https://codereview.chromium.org/2844933003/diff/1/ash/system/tray/hover_highlight_view.cc#newcode59 ash/system/tray/hover_highlight_view.cc:59: if (sub_text.empty()) We should either disallow empty string altogether ...
3 years, 7 months ago (2017-04-27 19:39:37 UTC) #7
tdanderson
Mohsen, please take another look https://codereview.chromium.org/2844933003/diff/1/ash/system/tray/hover_highlight_view.cc File ash/system/tray/hover_highlight_view.cc (right): https://codereview.chromium.org/2844933003/diff/1/ash/system/tray/hover_highlight_view.cc#newcode59 ash/system/tray/hover_highlight_view.cc:59: if (sub_text.empty()) On 2017/04/27 ...
3 years, 7 months ago (2017-04-27 20:52:16 UTC) #11
mohsen
lgtm
3 years, 7 months ago (2017-04-27 20:58:15 UTC) #12
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/2844933003/20001
3 years, 7 months ago (2017-04-27 21:02:14 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 01:48:02 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f8ef156d997fe415dfb94b4917a2...

Powered by Google App Engine
This is Rietveld 408576698