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

Issue 129333002: [Mac] Check if a profile is locked before allowing a new window to be opened. (Closed)

Created:
6 years, 11 months ago by noms (inactive)
Modified:
6 years, 10 months ago
Reviewers:
Nico
CC:
chromium-reviews
Visibility:
Public.

Description

[Mac] Check if a profile is locked before allowing a new window to be opened. BUG=331406 TEST=With the --new-profile-management flag, start Chrome. Sign in a profile, and choose "View all people" from the avatar menu once that is complete. Close the profile browser, then close the user manager window (you should have no windows open) 1. Clicking on the docked Chrome icon should open the user manager and 2. Command-N (or Open New Window) form the docked Chrome icon should do the same. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247891

Patch Set 1 #

Patch Set 2 : unbreak the status quo #

Patch Set 3 : ++tests #

Total comments: 7

Patch Set 4 : rebase #

Patch Set 5 : nico review #

Patch Set 6 : rebase #

Patch Set 7 : fixed test! ^___^ #

Total comments: 2

Patch Set 8 : s/MessageLoop/RunLoop/g #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -2 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 5 chunks +33 lines, -1 line 0 comments Download
M chrome/browser/app_controller_mac_browsertest.mm View 1 2 3 4 5 6 7 2 chunks +113 lines, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
noms (inactive)
Hi Nico, I've added some checks when opening a new browser window that we don't ...
6 years, 11 months ago (2014-01-08 21:20:49 UTC) #1
Nico
Is it possible to write a test for this?
6 years, 11 months ago (2014-01-09 03:53:03 UTC) #2
noms (inactive)
Done! Not one, but three tests! :)
6 years, 11 months ago (2014-01-09 18:49:53 UTC) #3
noms (inactive)
ping! :)
6 years, 11 months ago (2014-01-13 21:15:05 UTC) #4
Nico
Thanks for the tests. I assume you checked that some of them fail without your ...
6 years, 11 months ago (2014-01-14 02:16:03 UTC) #5
noms (inactive)
Yes, the Locked/Guest tests fail like champions pre-changes :) https://codereview.chromium.org/129333002/diff/90001/chrome/browser/app_controller_mac_browsertest.mm File chrome/browser/app_controller_mac_browsertest.mm (right): https://codereview.chromium.org/129333002/diff/90001/chrome/browser/app_controller_mac_browsertest.mm#newcode159 chrome/browser/app_controller_mac_browsertest.mm:159: ...
6 years, 11 months ago (2014-01-14 17:59:50 UTC) #6
noms (inactive)
pong
6 years, 11 months ago (2014-01-18 18:17:14 UTC) #7
Nico
Sorry about the delay. The two back-to-back "run message loop" calls don't look right to ...
6 years, 11 months ago (2014-01-21 04:13:03 UTC) #8
noms (inactive)
I see. Let me know if you find anything!
6 years, 11 months ago (2014-01-21 21:32:31 UTC) #9
Nico
https://codereview.chromium.org/129333002/diff/90001/chrome/browser/app_controller_mac_browsertest.mm File chrome/browser/app_controller_mac_browsertest.mm (right): https://codereview.chromium.org/129333002/diff/90001/chrome/browser/app_controller_mac_browsertest.mm#newcode170 chrome/browser/app_controller_mac_browsertest.mm:170: base::MessageLoop::current()->RunUntilIdle(); On 2014/01/14 17:59:50, Monica Dinculescu wrote: > IsShowing() ...
6 years, 11 months ago (2014-01-23 21:15:40 UTC) #10
noms (inactive)
I agree with everything you've said about what is happening. That's what I was trying ...
6 years, 11 months ago (2014-01-27 20:12:01 UTC) #11
Nico
On Mon, Jan 27, 2014 at 12:12 PM, <noms@chromium.org> wrote: > I agree with everything ...
6 years, 10 months ago (2014-01-28 16:48:27 UTC) #12
noms (inactive)
I fixed the test!
6 years, 10 months ago (2014-01-29 18:05:09 UTC) #13
Nico
Nice! I think I saw similar code elsewhere, maybe that could be factored into a ...
6 years, 10 months ago (2014-01-29 18:37:48 UTC) #14
noms (inactive)
https://codereview.chromium.org/129333002/diff/360001/chrome/browser/app_controller_mac_browsertest.mm File chrome/browser/app_controller_mac_browsertest.mm (right): https://codereview.chromium.org/129333002/diff/360001/chrome/browser/app_controller_mac_browsertest.mm#newcode145 chrome/browser/app_controller_mac_browsertest.mm:145: base::MessageLoop::current()->RunUntilIdle(); On 2014/01/29 18:37:48, Nico wrote: > Since you ...
6 years, 10 months ago (2014-01-29 19:16:10 UTC) #15
Nico
lgtm!
6 years, 10 months ago (2014-01-29 19:17:11 UTC) #16
noms (inactive)
EEEEEE! Thanks! To the CQ!
6 years, 10 months ago (2014-01-29 19:18:17 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/129333002/380001
6 years, 10 months ago (2014-01-29 19:20:47 UTC) #18
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 03:03:43 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/129333002/380001
6 years, 10 months ago (2014-01-30 03:09:04 UTC) #20
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 08:10:52 UTC) #21
Message was sent while issue was closed.
Change committed as 247891

Powered by Google App Engine
This is Rietveld 408576698