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

Issue 838033006: Fix the issue that When hiding a window will change its transient child windows' property. (Closed)

Created:
5 years, 11 months ago by xdai1
Modified:
5 years, 10 months ago
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

When switching between users, the window that belongs to the old user gets hidden, which also hides all its transient child windows. That will clear the transient window's modal property and set it to a normal window - which is incorrect. Based on the comments above the code that clears the window's modality state, we move this line out into OnWindowDestroying(). BUG=447743 Committed: https://crrev.com/14e7d0bd7fe57cf225882d271c9875191089e8ce Cr-Commit-Position: refs/heads/master@{#316646}

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : Add unit tests. #

Patch Set 4 : Add unit tests. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -3 lines) Patch
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc View 1 2 3 2 chunks +51 lines, -0 lines 2 comments Download
M ui/wm/core/focus_controller.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
xdai1
Please help to review the CL, Thanks!
5 years, 11 months ago (2015-01-16 18:21:42 UTC) #3
Mr4D (OOO till 08-26)
Basically this looks good - however - testing this in a unit test should be ...
5 years, 11 months ago (2015-01-16 21:38:10 UTC) #4
xdai1
Please take another look, thanks!
5 years, 11 months ago (2015-01-20 18:58:47 UTC) #9
Mr4D (OOO till 08-26)
lgtm https://codereview.chromium.org/838033006/diff/160001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc File chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc (right): https://codereview.chromium.org/838033006/diff/160001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc#newcode1126 chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc:1126: // and the property of transient windows. Thanks ...
5 years, 11 months ago (2015-01-20 19:17:22 UTC) #10
xdai1
@ben, can you help to review the code? Thanks!
5 years, 11 months ago (2015-01-22 23:27:30 UTC) #11
xdai1
sky@, can you help to review the code please? Thanks!
5 years, 10 months ago (2015-01-31 00:27:02 UTC) #13
sky
Ben is a better person to review this one.
5 years, 10 months ago (2015-02-02 15:40:22 UTC) #14
Ben Goodger (Google)
lgtm
5 years, 10 months ago (2015-02-17 19:27:33 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/838033006/160001
5 years, 10 months ago (2015-02-17 19:34:09 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:160001)
5 years, 10 months ago (2015-02-17 20:34:28 UTC) #18
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/14e7d0bd7fe57cf225882d271c9875191089e8ce Cr-Commit-Position: refs/heads/master@{#316646}
5 years, 10 months ago (2015-02-17 20:35:06 UTC) #19
sky
https://codereview.chromium.org/838033006/diff/160001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc File chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc (right): https://codereview.chromium.org/838033006/diff/160001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc#newcode1126 chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc:1126: // and the property of transient windows. On 2015/01/20 ...
5 years, 10 months ago (2015-02-18 23:14:20 UTC) #20
xdai1
On 2015/02/18 23:14:20, sky wrote: > https://codereview.chromium.org/838033006/diff/160001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc > File > chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc > (right): > > ...
5 years, 10 months ago (2015-02-18 23:18:33 UTC) #21
sky
5 years, 10 months ago (2015-02-19 16:19:49 UTC) #22
Message was sent while issue was closed.
Thanks!

On Wed, Feb 18, 2015 at 3:18 PM,  <xdai@chromium.org> wrote:
> On 2015/02/18 23:14:20, sky wrote:
>
>
https://codereview.chromium.org/838033006/diff/160001/chrome/browser/ui/ash/m...
>>
>> File
>
>
>
chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc
>>
>> (right):
>
>
>
>
https://codereview.chromium.org/838033006/diff/160001/chrome/browser/ui/ash/m...
>
>
chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc:1126:
>>
>> // and the property of transient windows.
>> On 2015/01/20 19:17:22, Mr4D wrote:
>> > Thanks for writing the test!
>> >
>> > Since we have some special logic for transient windows ourselves it is
>> > good
>
> to
>>
>> > have a test here.
>> >
>> > That said - ideally we should have a FocusController test direct in
>> > focus_controller_unittest.cc, because the main logic for this is there.
>> >
>> > [Create 2 windows, make one the transient child of the other, hide the
>> (parent)
>> > window and show it again. The transient child should remain the
>> > transient
>> child
>> > all the time.]
>> >
>> > But I am fine with the way this is.
>
>
>> I would have preferred a test in focus_controller_unittest too. Was that
>> not
>> possible?
>
>
> NP, I will add the test in focus_controller_unittest.cc in another CL.
>
> https://codereview.chromium.org/838033006/

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698