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

Issue 11783008: Add a lock to the managed user settings page and require authentication for unlocking. (Closed)

Created:
7 years, 11 months ago by Adrian Kuegel
Modified:
7 years, 10 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

Add support for a manager passphrase of a managed account. The managed user settings page will be shown with every control disabled. A click on the button "Unlock" shows the passphrase dialog. After a successful authentication, the controls of the settings page are enabled. The authentication is reset when the settings page is closed. BUG=171370 TEST=browser_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184206

Patch Set 1 #

Total comments: 77

Patch Set 2 : Added a randomly generated salt, small fix in key generation #

Total comments: 10

Patch Set 3 : Style issue fixes #

Total comments: 4

Patch Set 4 : Several fixes #

Total comments: 49

Patch Set 5 : Some more fixes, mostly coding style #

Patch Set 6 : Prevent showing the settings and set password page without authentication #

Patch Set 7 : Rebased to TOT, added const to function declarations when possible #

Patch Set 8 : Add a check if the passphrase is set before closing the settings. #

Total comments: 16

Patch Set 9 : Add unit tests for Managed User Passphrase Handler #

Patch Set 10 : Add browsertest for Managed User Passphrase Handler. #

Patch Set 11 : Use ManagedUserService instead of ManagedMode. #

Patch Set 12 : Add browser test for ManagedUserSetPassphraseOverlay #

Total comments: 14

Patch Set 13 : Fixed sync on cancel bug and other small issues. #

Patch Set 14 : Adress comments and rebase to TOT. #

Patch Set 15 : Use setCustomValidity in managed_user_set_passphrase.js. #

Total comments: 10

Patch Set 16 : Adressed comments regarding the set passphrase dialog. #

Total comments: 6

Patch Set 17 : A few more fixes. #

Total comments: 4

Patch Set 18 : Replace test class by test object. #

Total comments: 1

Patch Set 19 : Rebase to ToT, add test for ManagedUserSettings page. #

Total comments: 16

Patch Set 20 : Rebase to ToT and address review comments. #

Total comments: 4

Patch Set 21 : Address review comments. #

Total comments: 20

Patch Set 22 : Address review comments. #

Patch Set 23 : Rebase to ToT. #

Patch Set 24 : Fix problem with some WebUI tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -14 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/options/managed_user_set_passphrase.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/managed_user_settings.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/options/managed_user_settings.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +108 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/managed_user_passphrase_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +26 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/managed_user_passphrase_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +76 lines, -1 line 0 comments Download
A chrome/browser/ui/webui/options/managed_user_settings_browsertest.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/managed_user_settings_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/managed_user_settings_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +30 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options/managed_user_settings_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +24 lines, -0 lines 0 comments Download
A + chrome/browser/ui/webui/options/managed_user_settings_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (0 generated)
Adrian Kuegel
Please take a look and give me some feedback. So far, the salt is still ...
7 years, 11 months ago (2013-01-07 09:52:46 UTC) #1
Bernhard Bauer
On 2013/01/07 09:52:46, Adrian Kuegel wrote: > Please take a look and give me some ...
7 years, 11 months ago (2013-01-07 14:20:22 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/11783008/diff/3001/chrome/browser/managed_mode/managed_mode.cc File chrome/browser/managed_mode/managed_mode.cc (right): https://codereview.chromium.org/11783008/diff/3001/chrome/browser/managed_mode/managed_mode.cc#newcode98 chrome/browser/managed_mode/managed_mode.cc:98: "managed_salt", Again, please use an empty string or something. ...
7 years, 11 months ago (2013-01-07 14:39:22 UTC) #3
Pam (message me for reviews)
https://codereview.chromium.org/11783008/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/11783008/diff/1/chrome/app/generated_resources.grd#newcode8079 chrome/app/generated_resources.grd:8079: + Enter passphrase to unlock managed user settings For ...
7 years, 11 months ago (2013-01-07 14:51:49 UTC) #4
Adrian Kuegel
On 2013/01/07 14:20:22, Bernhard Bauer wrote: > https://codereview.chromium.org/11783008/diff/1/chrome/browser/managed_mode/managed_user_passphrase.h#newcode17 > chrome/browser/managed_mode/managed_user_passphrase.h:17: static void > GetPassphraseHash(const std::string& ...
7 years, 11 months ago (2013-01-08 15:18:42 UTC) #5
Adrian Kuegel
On 2013/01/07 14:39:22, Bernhard Bauer wrote: > https://codereview.chromium.org/11783008/diff/3001/chrome/browser/managed_mode/managed_mode.cc > File chrome/browser/managed_mode/managed_mode.cc (right): > > https://codereview.chromium.org/11783008/diff/3001/chrome/browser/managed_mode/managed_mode.cc#newcode98 ...
7 years, 11 months ago (2013-01-08 15:23:26 UTC) #6
Adrian Kuegel
On 2013/01/07 14:51:49, Pam wrote: > https://codereview.chromium.org/11783008/diff/1/chrome/app/generated_resources.grd > File chrome/app/generated_resources.grd (right): > > https://codereview.chromium.org/11783008/diff/1/chrome/app/generated_resources.grd#newcode8079 > ...
7 years, 11 months ago (2013-01-08 16:19:24 UTC) #7
Bernhard Bauer
As a general note, you can directly reply to individual comments inline in the diff ...
7 years, 11 months ago (2013-01-08 17:43:14 UTC) #8
Bernhard Bauer
On 2013/01/08 15:18:42, Adrian Kuegel wrote: > On 2013/01/07 14:20:22, Bernhard Bauer wrote: > > ...
7 years, 11 months ago (2013-01-08 17:47:46 UTC) #9
Adrian Kuegel
On 2013/01/08 17:43:14, Bernhard Bauer wrote: > As a general note, you can directly reply ...
7 years, 11 months ago (2013-01-09 09:23:10 UTC) #10
Bernhard Bauer
Let me know when you've uploaded the latest version. On Wed, Jan 9, 2013 at ...
7 years, 11 months ago (2013-01-09 10:47:11 UTC) #11
Pam (message me for reviews)
> > Yes, I guess it would be better to keep some state for authentication. ...
7 years, 11 months ago (2013-01-09 11:52:49 UTC) #12
Bernhard Bauer
On Wed, Jan 9, 2013 at 12:52 PM, <pam@chromium.org> wrote: > > Yes, I guess ...
7 years, 11 months ago (2013-01-09 11:58:50 UTC) #13
Pam (message me for reviews)
On 2013/01/09 11:58:50, Bernhard Bauer wrote: > Hm. We should definitely have a check when ...
7 years, 11 months ago (2013-01-09 12:02:34 UTC) #14
Adrian Kuegel
On 2013/01/08 17:47:46, Bernhard Bauer wrote: > > > chrome.send('DialogClose', ['correct']); > > > Do ...
7 years, 11 months ago (2013-01-09 12:10:04 UTC) #15
Pam (message me for reviews)
Needs BUG= and TEST= lines. (And tests.) https://codereview.chromium.org/11783008/diff/1/chrome/browser/resources/options/managed_user_set_passphrase.js File chrome/browser/resources/options/managed_user_set_passphrase.js (right): https://codereview.chromium.org/11783008/diff/1/chrome/browser/resources/options/managed_user_set_passphrase.js#newcode42 chrome/browser/resources/options/managed_user_set_passphrase.js:42: chrome.send('setPassphrase', [$('passphrase-foo').value]); ...
7 years, 11 months ago (2013-01-14 15:37:50 UTC) #16
Adrian Kuegel
First, sorry that I did not respond earlier. I had the flu, so when I ...
7 years, 11 months ago (2013-01-19 01:21:32 UTC) #17
Adrian Kuegel
I added a browsertest for the ManagedUserPassphrase handler. Can you please take a look if ...
7 years, 11 months ago (2013-01-23 05:29:04 UTC) #18
Adrian Kuegel
I have now also written a browsertest for the ManagedUserSetPassphraseOverlay which covers the set passphrase ...
7 years, 10 months ago (2013-01-28 10:35:00 UTC) #19
Pam (message me for reviews)
Sorry for the delay! I was also sick. I think these tests are sufficient. https://codereview.chromium.org/11783008/diff/72001/chrome/browser/managed_mode/managed_user_passphrase_unittest.cc ...
7 years, 10 months ago (2013-01-28 13:53:27 UTC) #20
Adrian Kuegel
https://codereview.chromium.org/11783008/diff/72001/chrome/browser/managed_mode/managed_user_passphrase_unittest.cc File chrome/browser/managed_mode/managed_user_passphrase_unittest.cc (right): https://codereview.chromium.org/11783008/diff/72001/chrome/browser/managed_mode/managed_user_passphrase_unittest.cc#newcode1 chrome/browser/managed_mode/managed_user_passphrase_unittest.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 10 months ago (2013-01-28 15:41:44 UTC) #21
Pam (message me for reviews)
LGTM! - Pam
7 years, 10 months ago (2013-01-29 13:03:33 UTC) #22
Bernhard Bauer
On 2013/01/09 12:10:04, Adrian Kuegel wrote: > On 2013/01/08 17:47:46, Bernhard Bauer wrote: > > ...
7 years, 10 months ago (2013-02-04 16:13:35 UTC) #23
Adrian Kuegel
@Bernhard: can you please take another look? https://codereview.chromium.org/11783008/diff/3005/chrome/browser/managed_mode/managed_user_passphrase.cc File chrome/browser/managed_mode/managed_user_passphrase.cc (right): https://codereview.chromium.org/11783008/diff/3005/chrome/browser/managed_mode/managed_user_passphrase.cc#newcode31 chrome/browser/managed_mode/managed_user_passphrase.cc:31: crypto::RandBytes(WriteInto(&bytes, bytes.size()), ...
7 years, 10 months ago (2013-02-05 12:12:35 UTC) #24
Bernhard Bauer
Getting there :) https://codereview.chromium.org/11783008/diff/92001/chrome/browser/resources/options/managed_user_set_passphrase.html File chrome/browser/resources/options/managed_user_set_passphrase.html (right): https://codereview.chromium.org/11783008/diff/92001/chrome/browser/resources/options/managed_user_set_passphrase.html#newcode9 chrome/browser/resources/options/managed_user_set_passphrase.html:9: <span i18n-content="setPassphraseInstructions"></span> You could set the ...
7 years, 10 months ago (2013-02-05 12:52:23 UTC) #25
Adrian Kuegel
New patch uploaded. https://codereview.chromium.org/11783008/diff/92001/chrome/browser/resources/options/managed_user_set_passphrase.html File chrome/browser/resources/options/managed_user_set_passphrase.html (right): https://codereview.chromium.org/11783008/diff/92001/chrome/browser/resources/options/managed_user_set_passphrase.html#newcode9 chrome/browser/resources/options/managed_user_set_passphrase.html:9: <span i18n-content="setPassphraseInstructions"></span> On 2013/02/05 12:52:23, Bernhard ...
7 years, 10 months ago (2013-02-05 13:21:05 UTC) #26
Bernhard Bauer
https://codereview.chromium.org/11783008/diff/93051/chrome/browser/resources/options/managed_user_set_passphrase.js File chrome/browser/resources/options/managed_user_set_passphrase.js (right): https://codereview.chromium.org/11783008/diff/93051/chrome/browser/resources/options/managed_user_set_passphrase.js#newcode45 chrome/browser/resources/options/managed_user_set_passphrase.js:45: $('passphrase-confirm').setCustomValidity(valid ? '' : Move |valid| to a new ...
7 years, 10 months ago (2013-02-05 13:34:44 UTC) #27
Adrian Kuegel
And another patch :-) https://codereview.chromium.org/11783008/diff/93051/chrome/browser/resources/options/managed_user_set_passphrase.js File chrome/browser/resources/options/managed_user_set_passphrase.js (right): https://codereview.chromium.org/11783008/diff/93051/chrome/browser/resources/options/managed_user_set_passphrase.js#newcode45 chrome/browser/resources/options/managed_user_set_passphrase.js:45: $('passphrase-confirm').setCustomValidity(valid ? '' : On ...
7 years, 10 months ago (2013-02-05 14:56:45 UTC) #28
Bernhard Bauer
https://codereview.chromium.org/11783008/diff/103001/chrome/browser/resources/options/managed_user_set_passphrase.js File chrome/browser/resources/options/managed_user_set_passphrase.js (right): https://codereview.chromium.org/11783008/diff/103001/chrome/browser/resources/options/managed_user_set_passphrase.js#newcode58 chrome/browser/resources/options/managed_user_set_passphrase.js:58: function ManagedUserSetPassphraseForTesting() { This can really just be an ...
7 years, 10 months ago (2013-02-05 16:21:32 UTC) #29
Adrian Kuegel
And another patch. https://codereview.chromium.org/11783008/diff/103001/chrome/browser/resources/options/managed_user_set_passphrase.js File chrome/browser/resources/options/managed_user_set_passphrase.js (right): https://codereview.chromium.org/11783008/diff/103001/chrome/browser/resources/options/managed_user_set_passphrase.js#newcode58 chrome/browser/resources/options/managed_user_set_passphrase.js:58: function ManagedUserSetPassphraseForTesting() { On 2013/02/05 16:21:32, ...
7 years, 10 months ago (2013-02-05 16:53:04 UTC) #30
Bernhard Bauer
LGTM!
7 years, 10 months ago (2013-02-05 17:02:17 UTC) #31
Adrian Kuegel
@jhawkins: can I please get OWNERS approval?
7 years, 10 months ago (2013-02-05 17:05:46 UTC) #32
James Hawkins
On 2013/02/05 17:05:46, Adrian Kuegel wrote: > @jhawkins: can I please get OWNERS approval? For ...
7 years, 10 months ago (2013-02-05 17:35:34 UTC) #33
Adrian Kuegel
All files except the ones in chrome/browser/managed_mode/
7 years, 10 months ago (2013-02-06 08:40:03 UTC) #34
James Hawkins
Please attach screenshots. Also, would be really awesome if you could find a way to ...
7 years, 10 months ago (2013-02-06 17:06:41 UTC) #35
Adrian Kuegel
Unfortunately I see no way how to significantly break this CL up. A possible split ...
7 years, 10 months ago (2013-02-06 17:54:22 UTC) #36
James Hawkins
On 2013/02/06 17:54:22, Adrian Kuegel wrote: > Unfortunately I see no way how to significantly ...
7 years, 10 months ago (2013-02-06 17:58:33 UTC) #37
Bernhard Bauer
On 2013/02/06 17:58:33, James Hawkins wrote: > On 2013/02/06 17:54:22, Adrian Kuegel wrote: > > ...
7 years, 10 months ago (2013-02-06 18:18:26 UTC) #38
James Hawkins
On 2013/02/06 18:18:26, Bernhard Bauer wrote: > On 2013/02/06 17:58:33, James Hawkins wrote: > > ...
7 years, 10 months ago (2013-02-06 18:36:13 UTC) #39
Adrian Kuegel
I uploaded a new patch which is the remaining part after breaking everything else into ...
7 years, 10 months ago (2013-02-12 14:59:01 UTC) #40
Pam (message me for reviews)
https://codereview.chromium.org/11783008/diff/110001/chrome/browser/resources/options/managed_user_settings.js File chrome/browser/resources/options/managed_user_settings.js (right): https://codereview.chromium.org/11783008/diff/110001/chrome/browser/resources/options/managed_user_settings.js#newcode102 chrome/browser/resources/options/managed_user_settings.js:102: ManagedUserSettings.getInstance().updateControls(true); This would be clearer if the argument were ...
7 years, 10 months ago (2013-02-15 09:31:18 UTC) #41
Adrian Kuegel
I uploaded a new patch which addresses the review comments. Please take another look if ...
7 years, 10 months ago (2013-02-15 09:56:02 UTC) #42
Bernhard Bauer
https://codereview.chromium.org/11783008/diff/110001/chrome/browser/resources/options/managed_user_settings.js File chrome/browser/resources/options/managed_user_settings.js (right): https://codereview.chromium.org/11783008/diff/110001/chrome/browser/resources/options/managed_user_settings.js#newcode34 chrome/browser/resources/options/managed_user_settings.js:34: authenticationChecked: false, I think a better name for this ...
7 years, 10 months ago (2013-02-15 10:05:20 UTC) #43
Adrian Kuegel
I uploaded a new patch which is rebased to ToT which now includes the Passphrase ...
7 years, 10 months ago (2013-02-20 12:42:13 UTC) #44
Bernhard Bauer
https://codereview.chromium.org/11783008/diff/123001/chrome/browser/resources/options/managed_user_settings.js File chrome/browser/resources/options/managed_user_settings.js (right): https://codereview.chromium.org/11783008/diff/123001/chrome/browser/resources/options/managed_user_settings.js#newcode31 chrome/browser/resources/options/managed_user_settings.js:31: var Authentication = { I think we should prefix ...
7 years, 10 months ago (2013-02-20 13:06:20 UTC) #45
Adrian Kuegel
https://codereview.chromium.org/11783008/diff/123001/chrome/browser/resources/options/managed_user_settings.js File chrome/browser/resources/options/managed_user_settings.js (right): https://codereview.chromium.org/11783008/diff/123001/chrome/browser/resources/options/managed_user_settings.js#newcode31 chrome/browser/resources/options/managed_user_settings.js:31: var Authentication = { On 2013/02/20 13:06:20, Bernhard Bauer ...
7 years, 10 months ago (2013-02-20 13:28:26 UTC) #46
Bernhard Bauer
lgtm
7 years, 10 months ago (2013-02-20 13:46:03 UTC) #47
James Hawkins
https://codereview.chromium.org/11783008/diff/131002/chrome/browser/resources/options/managed_user_set_passphrase.js File chrome/browser/resources/options/managed_user_set_passphrase.js (right): https://codereview.chromium.org/11783008/diff/131002/chrome/browser/resources/options/managed_user_set_passphrase.js#newcode51 chrome/browser/resources/options/managed_user_set_passphrase.js:51: /** @override */ nit: Blank line above this. https://codereview.chromium.org/11783008/diff/131002/chrome/browser/resources/options/managed_user_settings.js ...
7 years, 10 months ago (2013-02-20 17:24:56 UTC) #48
Adrian Kuegel
Thanks for the review, James :-) I uploaded a new patch to address your comments. ...
7 years, 10 months ago (2013-02-20 18:05:02 UTC) #49
James Hawkins
lgtm
7 years, 10 months ago (2013-02-21 21:47:14 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akuegel@chromium.org/11783008/123006
7 years, 10 months ago (2013-02-21 21:58:52 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akuegel@chromium.org/11783008/123006
7 years, 10 months ago (2013-02-21 22:07:44 UTC) #52
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=101056
7 years, 10 months ago (2013-02-22 02:10:56 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akuegel@chromium.org/11783008/127005
7 years, 10 months ago (2013-02-22 20:32:17 UTC) #54
commit-bot: I haz the power
7 years, 10 months ago (2013-02-22 23:07:20 UTC) #55
Message was sent while issue was closed.
Change committed as 184206

Powered by Google App Engine
This is Rietveld 408576698