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

Issue 518063002: Settings to control Add Person and Browse as Guest. (Closed)

Created:
6 years, 3 months ago by Mike Lerman
Modified:
6 years, 3 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, arv+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Settings to control Add Person and Browse as Guest. The settings page will now have two options near the profile management, which will control whether Browse As Guest and Add Person will be available from the User Manager. These settings will not be available to supervised users, and will appear only on Desktop OSes. Also, add a new enterprise policy for the Enable Add Person preference (Browse As Guest policy already exists). BUG=406473 NOTE: I will remove PRESUBMIT.py from this CL before landing it. It needs to be modified to upload to rietveld from my Windows machine, see crbug.com/409029 Committed: https://crrev.com/46a8366faec20a16c85109f480bfa7b348480cac Cr-Commit-Position: refs/heads/master@{#293763}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Estade's comments and back-end permissions check on prefs. #

Patch Set 3 : Rebase (and remove PRESUBMIT.py) #

Total comments: 16

Patch Set 4 : estade nits; move pref registry #

Total comments: 6

Patch Set 5 : Move the prefs and estade's comments #

Patch Set 6 : Completely move prefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -11 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profiles_state.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.css View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options.html View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/user_manager/user_manager.js View 1 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.cc View 1 2 3 4 3 chunks +17 lines, -4 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 chunk +10 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 2 chunks +17 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (11 generated)
Mike Lerman
Kind and generous reviewers, This CL gently requests your attention. Specifically: asvitkine - histograms.xml estade- ...
6 years, 3 months ago (2014-08-29 20:41:58 UTC) #2
Mike Lerman
Also adding sky@ for review, for c/b/browser_process_impl.cc. Thanks everyone!
6 years, 3 months ago (2014-08-29 20:43:09 UTC) #4
Alexei Svitkine (slow)
histograms lgtm
6 years, 3 months ago (2014-08-29 22:17:50 UTC) #5
Evan Stade
https://codereview.chromium.org/518063002/diff/40001/chrome/browser/resources/options/browser_options.html File chrome/browser/resources/options/browser_options.html (right): https://codereview.chromium.org/518063002/diff/40001/chrome/browser/resources/options/browser_options.html#newcode216 chrome/browser/resources/options/browser_options.html:216: <label for="browser-guest-enable" structure should be <label> // no for= ...
6 years, 3 months ago (2014-08-30 01:15:37 UTC) #6
Marc Treib
https://codereview.chromium.org/518063002/diff/40001/chrome/browser/resources/options/browser_options.css File chrome/browser/resources/options/browser_options.css (right): https://codereview.chromium.org/518063002/diff/40001/chrome/browser/resources/options/browser_options.css#newcode465 chrome/browser/resources/options/browser_options.css:465: display: none; Should these be hidden also when guestMode=true? ...
6 years, 3 months ago (2014-09-01 08:49:53 UTC) #7
Joao da Silva
policy lgtm https://codereview.chromium.org/518063002/diff/40001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/518063002/diff/40001/PRESUBMIT.py#newcode1121 PRESUBMIT.py:1121: '^components[\\\/]policy[\\\/]resources[\\\/]policy_templates.json$', This has been fixed in https://codereview.chromium.org/518863002
6 years, 3 months ago (2014-09-01 08:56:18 UTC) #8
Mike Lerman
Thanks for the comments. https://codereview.chromium.org/518063002/diff/40001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/518063002/diff/40001/PRESUBMIT.py#newcode1121 PRESUBMIT.py:1121: '^components[\\\/]policy[\\\/]resources[\\\/]policy_templates.json$', On 2014/09/01 08:56:18, Joao ...
6 years, 3 months ago (2014-09-02 16:58:29 UTC) #9
Evan Stade
https://codereview.chromium.org/518063002/diff/100001/chrome/browser/resources/options/browser_options.html File chrome/browser/resources/options/browser_options.html (right): https://codereview.chromium.org/518063002/diff/100001/chrome/browser/resources/options/browser_options.html#newcode198 chrome/browser/resources/options/browser_options.html:198: <input id="profile-browser-guest-enable" where is this id used? https://codereview.chromium.org/518063002/diff/100001/chrome/browser/resources/options/browser_options.html#newcode201 chrome/browser/resources/options/browser_options.html:201: ...
6 years, 3 months ago (2014-09-02 18:18:18 UTC) #10
sky
https://codereview.chromium.org/518063002/diff/100001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/518063002/diff/100001/chrome/browser/browser_process_impl.cc#newcode786 chrome/browser/browser_process_impl.cc:786: registry->RegisterBooleanPref(prefs::kBrowserAddPersonEnabled, true); Seems a bit arbitrary that the pref ...
6 years, 3 months ago (2014-09-02 18:19:12 UTC) #11
Mike Lerman
https://codereview.chromium.org/518063002/diff/100001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/518063002/diff/100001/chrome/browser/browser_process_impl.cc#newcode786 chrome/browser/browser_process_impl.cc:786: registry->RegisterBooleanPref(prefs::kBrowserAddPersonEnabled, true); On 2014/09/02 18:19:12, sky wrote: > Seems ...
6 years, 3 months ago (2014-09-04 14:37:08 UTC) #12
sky
LGTM
6 years, 3 months ago (2014-09-04 17:43:43 UTC) #13
Evan Stade
mostly lg https://codereview.chromium.org/518063002/diff/120001/chrome/browser/resources/options/browser_options.css File chrome/browser/resources/options/browser_options.css (right): https://codereview.chromium.org/518063002/diff/120001/chrome/browser/resources/options/browser_options.css#newcode459 chrome/browser/resources/options/browser_options.css:459: #appearance-section, I know I keep vacillating on ...
6 years, 3 months ago (2014-09-04 17:55:36 UTC) #14
Evan Stade
https://codereview.chromium.org/518063002/diff/100001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/518063002/diff/100001/chrome/browser/browser_process_impl.cc#newcode786 chrome/browser/browser_process_impl.cc:786: registry->RegisterBooleanPref(prefs::kBrowserAddPersonEnabled, true); On 2014/09/04 14:37:08, Mike Lerman wrote: > ...
6 years, 3 months ago (2014-09-04 18:10:13 UTC) #15
Mike Lerman
https://codereview.chromium.org/518063002/diff/100001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/518063002/diff/100001/chrome/browser/browser_process_impl.cc#newcode786 chrome/browser/browser_process_impl.cc:786: registry->RegisterBooleanPref(prefs::kBrowserAddPersonEnabled, true); On 2014/09/04 18:10:13, Evan Stade wrote: > ...
6 years, 3 months ago (2014-09-04 20:58:51 UTC) #16
Evan Stade
lgtm
6 years, 3 months ago (2014-09-04 21:48:09 UTC) #17
Marc Treib
lgtm too (just for completeness' sake, not that it makes any difference :) )
6 years, 3 months ago (2014-09-05 07:21:43 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/518063002/140001
6 years, 3 months ago (2014-09-05 10:39:25 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/54098)
6 years, 3 months ago (2014-09-05 11:33:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/518063002/140001
6 years, 3 months ago (2014-09-05 16:46:38 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/54185)
6 years, 3 months ago (2014-09-05 17:13:55 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/518063002/140001
6 years, 3 months ago (2014-09-08 14:46:57 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/54751) linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/11855) linux_chromium_rel_swarming ...
6 years, 3 months ago (2014-09-08 15:25:35 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/518063002/160001
6 years, 3 months ago (2014-09-08 16:30:00 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/3039) android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/2866)
6 years, 3 months ago (2014-09-08 17:40:32 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/518063002/160001
6 years, 3 months ago (2014-09-08 18:27:05 UTC) #36
commit-bot: I haz the power
Committed patchset #6 (id:160001) as bac4ee9d03955cdad29ee4f7667e14cc02067429
6 years, 3 months ago (2014-09-08 18:53:52 UTC) #37
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:47:28 UTC) #38
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/46a8366faec20a16c85109f480bfa7b348480cac
Cr-Commit-Position: refs/heads/master@{#293763}

Powered by Google App Engine
This is Rietveld 408576698