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

Issue 2286433002: views: Textfield gets password reveal duration from ViewsDelegate (Closed)

Created:
4 years, 3 months ago by xiyuan
Modified:
4 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views: Textfield gets password reveal duration from ViewsDelegate Remove password_reveal_duration_ member in Textfield and always gets it from ViewsDelegate. BUG=634472 TEST=TextfieldTest.SetPasswordRevealDuration Committed: https://crrev.com/a34e954cec188f2cc09270ef801dd35ecd1072ac Cr-Commit-Position: refs/heads/master@{#414811}

Patch Set 1 #

Patch Set 2 : simplify and fix test failures #

Patch Set 3 : no setter #

Total comments: 2

Patch Set 4 : move GetPasswordRevealDuration to cc and revert TextfieldTestApi change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -13 lines) Patch
M ui/views/controls/textfield/textfield.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 chunks +9 lines, -8 lines 0 comments Download
M ui/views/views_delegate.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/views_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (18 generated)
xiyuan
This CL is to add an API to toggle password echo in Textfields. I am ...
4 years, 3 months ago (2016-08-25 21:31:02 UTC) #4
xiyuan
Please hold on the review. Let me fix the test failures first.
4 years, 3 months ago (2016-08-25 23:02:51 UTC) #7
xiyuan
Okay. Tests are passing now. Ready for review. Thanks.
4 years, 3 months ago (2016-08-26 05:08:14 UTC) #12
sky
I actually prefer no setter as it avoids the problem of portions of the code ...
4 years, 3 months ago (2016-08-26 16:11:12 UTC) #14
xiyuan
On 2016/08/26 16:11:12, sky wrote: > I actually prefer no setter as it avoids the ...
4 years, 3 months ago (2016-08-26 17:33:26 UTC) #19
sky
LGTM https://codereview.chromium.org/2286433002/diff/40001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2286433002/diff/40001/ui/views/controls/textfield/textfield.cc#newcode2028 ui/views/controls/textfield/textfield.cc:2028: base::TimeDelta Textfield::GetPasswordRevealDuration() { Make this an anonymous function ...
4 years, 3 months ago (2016-08-26 19:02:53 UTC) #20
xiyuan
https://codereview.chromium.org/2286433002/diff/40001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2286433002/diff/40001/ui/views/controls/textfield/textfield.cc#newcode2028 ui/views/controls/textfield/textfield.cc:2028: base::TimeDelta Textfield::GetPasswordRevealDuration() { On 2016/08/26 19:02:52, sky wrote: > ...
4 years, 3 months ago (2016-08-26 19:45:40 UTC) #21
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/2286433002/60001
4 years, 3 months ago (2016-08-26 19:46:26 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-26 21:30:02 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 21:31:50 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a34e954cec188f2cc09270ef801dd35ecd1072ac
Cr-Commit-Position: refs/heads/master@{#414811}

Powered by Google App Engine
This is Rietveld 408576698