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

Issue 6770012: Handle the PasswordManagerAllowShowPasswords preference in the options webui. (Closed)

Created:
9 years, 9 months ago by Joao da Silva
Modified:
9 years, 7 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Handle the PasswordManagerAllowShowPasswords preference in the options webui. BUG=59773 TEST=Set the policy, and the password manager won't show passwords. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81229

Patch Set 1 #

Total comments: 16

Patch Set 2 : Keep password column, show "IT-admin" banner #

Total comments: 4

Patch Set 3 : Presentation details moved to JS, cleanups, rebased #

Total comments: 2

Patch Set 4 : Implemented last comments #

Total comments: 2

Patch Set 5 : Moved obfuscated password to js #

Total comments: 3

Patch Set 6 : Nit. #

Patch Set 7 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -12 lines) Patch
M chrome/browser/resources/options/password_manager_list.js View 1 2 3 4 5 5 chunks +41 lines, -11 lines 0 comments Download
M chrome/browser/resources/options/personal_options.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/password_manager_handler.h View 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/password_manager_handler.cc View 1 2 3 4 4 chunks +21 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
Joao da Silva
This preference used to be in place before, but the new webui PasswordManager wasn't checking ...
9 years, 9 months ago (2011-03-29 15:13:08 UTC) #1
stuartmorgan
jhawkins, FYI. http://codereview.chromium.org/6770012/diff/1/chrome/browser/resources/options/password_manager_list.js File chrome/browser/resources/options/password_manager_list.js (right): http://codereview.chromium.org/6770012/diff/1/chrome/browser/resources/options/password_manager_list.js#newcode51 chrome/browser/resources/options/password_manager_list.js:51: passwordInputDiv.className = 'password'; Having a huge blank ...
9 years, 9 months ago (2011-03-29 15:24:58 UTC) #2
James Hawkins
http://codereview.chromium.org/6770012/diff/1/chrome/browser/resources/options/password_manager_list.js File chrome/browser/resources/options/password_manager_list.js (right): http://codereview.chromium.org/6770012/diff/1/chrome/browser/resources/options/password_manager_list.js#newcode48 chrome/browser/resources/options/password_manager_list.js:48: if (this.showPassword) { if (!this.showPassword) return; ^ Huge indented ...
9 years, 9 months ago (2011-03-29 17:37:23 UTC) #3
Joao da Silva
Thanks for your comments, I've contacted UI to get input on how to do this. ...
9 years, 9 months ago (2011-03-29 22:10:21 UTC) #4
stuartmorgan
On 2011/03/29 22:10:21, joaodasilva wrote: > The interface could also be left as it is, ...
9 years, 9 months ago (2011-03-29 22:14:39 UTC) #5
Joao da Silva
I've asked Alex (@ainslie) from UI about this change and sent some mocks, and he ...
9 years, 8 months ago (2011-03-31 10:03:22 UTC) #6
stuartmorgan
http://codereview.chromium.org/6770012/diff/5001/chrome/browser/ui/webui/options/password_manager_handler.cc File chrome/browser/ui/webui/options/password_manager_handler.cc (right): http://codereview.chromium.org/6770012/diff/5001/chrome/browser/ui/webui/options/password_manager_handler.cc#newcode109 chrome/browser/ui/webui/options/password_manager_handler.cc:109: // Call UpdatePasswordLists() to update the password data model ...
9 years, 8 months ago (2011-04-01 22:22:16 UTC) #7
Joao da Silva
stuartmorgan: thanks for reviewing, does it look better now? Mattias, James: what do you think ...
9 years, 8 months ago (2011-04-02 14:08:40 UTC) #8
James Hawkins
http://codereview.chromium.org/6770012/diff/10001/chrome/browser/ui/webui/options/password_manager_handler.cc File chrome/browser/ui/webui/options/password_manager_handler.cc (right): http://codereview.chromium.org/6770012/diff/10001/chrome/browser/ui/webui/options/password_manager_handler.cc#newcode176 chrome/browser/ui/webui/options/password_manager_handler.cc:176: entries, *show_value); The password list data is unrelated to ...
9 years, 8 months ago (2011-04-02 23:42:10 UTC) #9
Joao da Silva
Thanks for reviewing! Please consider the comment inline and let me know what you think. ...
9 years, 8 months ago (2011-04-03 19:27:17 UTC) #10
stuartmorgan
LGTM
9 years, 8 months ago (2011-04-04 17:41:14 UTC) #11
James Hawkins
Stuart and I talked off-list and decided that my recommendation above should be followed: * ...
9 years, 8 months ago (2011-04-04 20:35:36 UTC) #12
Joao da Silva
Please have another look. The parameter has been removed, and the JS code is checking ...
9 years, 8 months ago (2011-04-05 15:24:56 UTC) #13
stuartmorgan
On 2011/04/03 19:27:17, joaodasilva wrote: > I'm concerned that a determined attacker could use the ...
9 years, 8 months ago (2011-04-05 15:28:53 UTC) #14
Joao da Silva
On Tue, Apr 5, 2011 at 5:28 PM, <stuartmorgan@chromium.org> wrote: > A determined hacker can ...
9 years, 8 months ago (2011-04-05 15:44:53 UTC) #15
stuartmorgan
On 2011/04/05 15:44:53, joaodasilva wrote: > Yep, just verified it and now I'm worried, this ...
9 years, 8 months ago (2011-04-05 15:48:36 UTC) #16
Joao da Silva
What I had in mind is the user's address, credit cards, telephone, etc. I don't ...
9 years, 8 months ago (2011-04-05 15:57:19 UTC) #17
stuartmorgan
Having seen the code, since the list item needs to know whether or not to ...
9 years, 8 months ago (2011-04-05 15:58:29 UTC) #18
Joao da Silva
Agree, and changed it back. http://codereview.chromium.org/6770012/diff/13002/chrome/browser/ui/webui/options/password_manager_handler.cc File chrome/browser/ui/webui/options/password_manager_handler.cc (right): http://codereview.chromium.org/6770012/diff/13002/chrome/browser/ui/webui/options/password_manager_handler.cc#newcode162 chrome/browser/ui/webui/options/password_manager_handler.cc:162: string16 stars(ASCIIToUTF16("***")); On 2011/04/05 ...
9 years, 8 months ago (2011-04-05 16:15:59 UTC) #19
Joao da Silva
jhawkins: Ping :-) On 2011/04/05 16:15:59, joaodasilva wrote: > Agree, and changed it back. > ...
9 years, 8 months ago (2011-04-11 08:13:58 UTC) #20
James Hawkins
http://codereview.chromium.org/6770012/diff/11007/chrome/browser/resources/options/password_manager_list.js File chrome/browser/resources/options/password_manager_list.js (right): http://codereview.chromium.org/6770012/diff/11007/chrome/browser/resources/options/password_manager_list.js#newcode78 chrome/browser/resources/options/password_manager_list.js:78: // button doesn't exist when passwords can't be shown. ...
9 years, 8 months ago (2011-04-11 17:13:26 UTC) #21
stuartmorgan
http://codereview.chromium.org/6770012/diff/11007/chrome/browser/ui/webui/options/password_manager_handler.cc File chrome/browser/ui/webui/options/password_manager_handler.cc (right): http://codereview.chromium.org/6770012/diff/11007/chrome/browser/ui/webui/options/password_manager_handler.cc#newcode162 chrome/browser/ui/webui/options/password_manager_handler.cc:162: string16 empty; On 2011/04/11 17:13:26, James Hawkins wrote: > ...
9 years, 8 months ago (2011-04-11 17:16:06 UTC) #22
James Hawkins
On 2011/04/11 17:16:06, stuartmorgan wrote: > http://codereview.chromium.org/6770012/diff/11007/chrome/browser/ui/webui/options/password_manager_handler.cc > File chrome/browser/ui/webui/options/password_manager_handler.cc (right): > > http://codereview.chromium.org/6770012/diff/11007/chrome/browser/ui/webui/options/password_manager_handler.cc#newcode162 > ...
9 years, 8 months ago (2011-04-11 17:46:17 UTC) #23
Joao da Silva
9 years, 8 months ago (2011-04-11 18:10:54 UTC) #24
On 2011/04/11 17:46:17, James Hawkins wrote:
> On 2011/04/11 17:16:06, stuartmorgan wrote:
> >
>
http://codereview.chromium.org/6770012/diff/11007/chrome/browser/ui/webui/opt...
> > File chrome/browser/ui/webui/options/password_manager_handler.cc (right):
> > 
> >
>
http://codereview.chromium.org/6770012/diff/11007/chrome/browser/ui/webui/opt...
> > chrome/browser/ui/webui/options/password_manager_handler.cc:162: string16
> empty;
> > On 2011/04/11 17:13:26, James Hawkins wrote:
> > > Why don't you just send the asterisks here? That would simplify logic in
the
> > > view which it should not need to know about in the first place.
> > 
> > See my recent comment. The view already has to know about this to control
the
> > button, at which point it makes more sense to have the view control the
> details
> > of how the view displays this than it does to have the controller pass view
> > data.
> 
> Ok. LGTM with the nit from above.

Thanks for reviewing! Will commit later today.

Powered by Google App Engine
This is Rietveld 408576698