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

Issue 222033002: Add an 'obscured' flag to views::Label. (Closed)

Created:
6 years, 8 months ago by Mike West
Modified:
6 years, 8 months ago
Reviewers:
msw, sadrul
CC:
chromium-reviews, tfarina, Patrick Dubroy
Visibility:
Public.

Description

Add an 'obscured' flag to views::Label. For the password management bubble, we're rendering passwords into a label after replacing the string with bullets. This is something that's available at the platform level on OSX (NSSecureTextField); it seems reasonable to add the capability to labels themselves, rather than special-casing it into a view just for this bubble. 'git cl format' produced minor formatting changes in the effected lines. BUG=328339 R=msw@chromium.org, sadrul@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261728

Patch Set 1 : AppEngine... #

Patch Set 2 : *facepalm* #

Total comments: 15

Patch Set 3 : Test. #

Total comments: 6

Patch Set 4 : Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -17 lines) Patch
M ui/views/controls/label.h View 1 2 4 chunks +14 lines, -0 lines 0 comments Download
M ui/views/controls/label.cc View 1 2 3 12 chunks +47 lines, -16 lines 0 comments Download
M ui/views/controls/label_unittest.cc View 1 2 3 2 chunks +46 lines, -1 line 0 comments Download
M ui/views/examples/label_example.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Mike West
sadrul@: Would you mind taking a look at this CL? Does this feature make sense ...
6 years, 8 months ago (2014-04-02 10:47:59 UTC) #1
sadrul
On 2014/04/02 10:47:59, Mike West wrote: > sadrul@: Would you mind taking a look at ...
6 years, 8 months ago (2014-04-02 16:59:12 UTC) #2
Use mkwst_at_chromium.org plz.
In this particular case, we want to hide the value of a Link. I'm not ...
6 years, 8 months ago (2014-04-02 17:05:35 UTC) #3
sadrul
+msw@ for thoughts as textfield owner On 2014/04/02 17:05:35, Use mkwst_at_chromium.org plz. wrote: > In ...
6 years, 8 months ago (2014-04-02 22:57:30 UTC) #4
msw
I'm not opposed to this in principal, but sad that I still haven't backed views::Label ...
6 years, 8 months ago (2014-04-03 01:38:47 UTC) #5
Mike West
> I'm not opposed to this in principal, but sad that I still haven't backed ...
6 years, 8 months ago (2014-04-03 08:17:25 UTC) #6
msw
LGTM with nits; agreed that this seems reasonable. Yeah, this doesn't hinder Label using RenderText. ...
6 years, 8 months ago (2014-04-03 18:27:48 UTC) #7
Mike West
On 2014/04/03 18:27:48, msw wrote: > LGTM with nits; agreed that this seems reasonable. > ...
6 years, 8 months ago (2014-04-03 19:20:27 UTC) #8
sadrul
stamp lgtm
6 years, 8 months ago (2014-04-03 19:24:11 UTC) #9
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 8 months ago (2014-04-04 07:05:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/222033002/120001
6 years, 8 months ago (2014-04-04 07:05:02 UTC) #11
Mike West
Thanks! https://codereview.chromium.org/222033002/diff/40001/ui/views/controls/label_unittest.cc File ui/views/controls/label_unittest.cc (right): https://codereview.chromium.org/222033002/diff/40001/ui/views/controls/label_unittest.cc#newcode159 ui/views/controls/label_unittest.cc:159: label.SetObscured(false); On 2014/04/03 18:27:48, msw wrote: > On ...
6 years, 8 months ago (2014-04-04 07:05:14 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 07:09:25 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-04 07:09:25 UTC) #14
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 8 months ago (2014-04-04 07:39:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/222033002/120001
6 years, 8 months ago (2014-04-04 07:39:18 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 08:06:32 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-04 08:06:33 UTC) #18
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 8 months ago (2014-04-04 08:44:33 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/222033002/120001
6 years, 8 months ago (2014-04-04 08:44:35 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 09:12:17 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-04 09:12:18 UTC) #22
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 8 months ago (2014-04-04 09:42:18 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/222033002/120001
6 years, 8 months ago (2014-04-04 09:42:27 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 10:16:14 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-04 10:16:15 UTC) #26
Mike West
6 years, 8 months ago (2014-04-04 11:11:34 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 manually as r261728 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698