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

Issue 1506353007: Show warning message when trying to create SU with existing name (Closed)

Created:
5 years ago by atanasova
Modified:
5 years ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show warning message when trying to create SU with existing name Disallow creating a new supervised user if there is already existing SU user with the same name locally. If there are multiple supervised users with the same name, then disallow creating when all of them are imported locally. If at least one of them is not, show the import dialog. BUG=557445 Committed: https://crrev.com/4688e7512edad31d7f0c2cbafe4bb2e4d73c47a7 Cr-Commit-Position: refs/heads/master@{#366364}

Patch Set 1 #

Patch Set 2 : Removed break from the nameIsUnique loop #

Total comments: 11

Patch Set 3 : Addressing comments #

Total comments: 2

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Addressing the optional nit #

Total comments: 2

Patch Set 6 : Adding link to the bug in the comment #

Patch Set 7 : Fixing the broken unit test and adding a new one that will test for the bug created scenario #

Total comments: 2

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -28 lines) Patch
M chrome/app/generated_resources.grd View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/resources/options/manage_profile_overlay.js View 1 2 3 4 5 1 chunk +29 lines, -19 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_browsertest.js View 1 2 3 4 5 6 7 3 chunks +15 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 29 (10 generated)
atanasova
I have not added unit tests since I am not sure if we have any ...
5 years ago (2015-12-10 10:58:50 UTC) #3
Marc Treib
Looks good! Just some minor comments below, and the option to reuse a similar string ...
5 years ago (2015-12-10 11:36:41 UTC) #5
Pam (message me for reviews)
https://codereview.chromium.org/1506353007/diff/20001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1506353007/diff/20001/chrome/app/generated_resources.grd#newcode12934 chrome/app/generated_resources.grd:12934: + Looks like you have already imported a supervised ...
5 years ago (2015-12-15 14:31:37 UTC) #6
atanasova
https://codereview.chromium.org/1506353007/diff/20001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1506353007/diff/20001/chrome/app/generated_resources.grd#newcode12933 chrome/app/generated_resources.grd:12933: + <message name="IDS_PROFILES_CREATE_EXISTING_LEGACY_SUPERVISED_USER_ERROR_EXISTS_LOCALLY" desc="Message shown when the user enters ...
5 years ago (2015-12-15 17:57:36 UTC) #7
Pam (message me for reviews)
For documentation purposes, please link screenshots showing the user flows for the various situations. https://codereview.chromium.org/1506353007/diff/40001/chrome/browser/resources/options/manage_profile_overlay.js ...
5 years ago (2015-12-15 22:20:13 UTC) #8
Pam (message me for reviews)
On 2015/12/15 22:20:13, Pam (also PM for reviews) wrote: > For documentation purposes, please link ...
5 years ago (2015-12-15 22:20:51 UTC) #9
atanasova
https://codereview.chromium.org/1506353007/diff/40001/chrome/browser/resources/options/manage_profile_overlay.js File chrome/browser/resources/options/manage_profile_overlay.js (right): https://codereview.chromium.org/1506353007/diff/40001/chrome/browser/resources/options/manage_profile_overlay.js#newcode385 chrome/browser/resources/options/manage_profile_overlay.js:385: // Handling the case when multiple SU user with ...
5 years ago (2015-12-16 09:21:14 UTC) #10
Marc Treib
LGTM! (We'll still have to wait for Pam though, or add someone else, since I ...
5 years ago (2015-12-16 09:26:54 UTC) #11
atanasova
https://codereview.chromium.org/1506353007/diff/60001/chrome/browser/resources/options/manage_profile_overlay.js File chrome/browser/resources/options/manage_profile_overlay.js (right): https://codereview.chromium.org/1506353007/diff/60001/chrome/browser/resources/options/manage_profile_overlay.js#newcode382 chrome/browser/resources/options/manage_profile_overlay.js:382: if (supervisedUsers[i].name == newName) { On 2015/12/16 09:26:54, Marc ...
5 years ago (2015-12-16 14:35:37 UTC) #12
Pam (message me for reviews)
LGTM with the small comment change described below. https://codereview.chromium.org/1506353007/diff/80001/chrome/browser/resources/options/manage_profile_overlay.js File chrome/browser/resources/options/manage_profile_overlay.js (right): https://codereview.chromium.org/1506353007/diff/80001/chrome/browser/resources/options/manage_profile_overlay.js#newcode390 chrome/browser/resources/options/manage_profile_overlay.js:390: // ...
5 years ago (2015-12-16 18:38:50 UTC) #13
atanasova
https://codereview.chromium.org/1506353007/diff/80001/chrome/browser/resources/options/manage_profile_overlay.js File chrome/browser/resources/options/manage_profile_overlay.js (right): https://codereview.chromium.org/1506353007/diff/80001/chrome/browser/resources/options/manage_profile_overlay.js#newcode390 chrome/browser/resources/options/manage_profile_overlay.js:390: // creating SUs with the same name. On 2015/12/16 ...
5 years ago (2015-12-17 09:28:40 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1506353007/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1506353007/100001
5 years ago (2015-12-17 09:31:20 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/146340)
5 years ago (2015-12-17 10:14:59 UTC) #19
atanasova
PTAL. Fixed the broken unit test and added a new one that tests for the ...
5 years ago (2015-12-21 09:56:11 UTC) #20
Marc Treib
Still LGTM https://codereview.chromium.org/1506353007/diff/120001/chrome/browser/ui/webui/options/manage_profile_browsertest.js File chrome/browser/ui/webui/options/manage_profile_browsertest.js (right): https://codereview.chromium.org/1506353007/diff/120001/chrome/browser/ui/webui/options/manage_profile_browsertest.js#newcode228 chrome/browser/ui/webui/options/manage_profile_browsertest.js:228: // Also add the names 'Test' and ...
5 years ago (2015-12-21 10:02:20 UTC) #21
atanasova
https://codereview.chromium.org/1506353007/diff/120001/chrome/browser/ui/webui/options/manage_profile_browsertest.js File chrome/browser/ui/webui/options/manage_profile_browsertest.js (right): https://codereview.chromium.org/1506353007/diff/120001/chrome/browser/ui/webui/options/manage_profile_browsertest.js#newcode228 chrome/browser/ui/webui/options/manage_profile_browsertest.js:228: // Also add the names 'Test' and 'SameName' to ...
5 years ago (2015-12-21 10:11:53 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1506353007/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1506353007/140001
5 years ago (2015-12-21 10:12:06 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years ago (2015-12-21 10:57:36 UTC) #27
commit-bot: I haz the power
5 years ago (2015-12-21 10:58:14 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4688e7512edad31d7f0c2cbafe4bb2e4d73c47a7
Cr-Commit-Position: refs/heads/master@{#366364}

Powered by Google App Engine
This is Rietveld 408576698