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

Issue 1136693002: Chrome user menu shouldn't close if a tab steals focus (Closed)

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

Description

Chrome user menu shouldn't close if a tab steals focus. This CL is dedicated to fix above issue and achieve below behaviors: 1. User Menu does not close during sign-in flow: Things can't steal focus; the user menu stays open while you're typing / in the signin flow. 2. Sign-in confirmation is modal: The user menu is not closeable until the user interacts with the signin confirmation window. Sync should be delayed until the user interacts with the dialogue. 3. Blue information box: This shouldn't go away until the user explicitly interacts with it (not you, what's new, "x"). Doesn't affect modality/close-ability of the user menu. BUG=341196 Committed: https://crrev.com/131615b8cfd0e9b3045f3384e06ec3d8eb4f272a Cr-Commit-Position: refs/heads/master@{#330789}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Chrome user menu shouldn't close if a tab steals focus #

Total comments: 12

Patch Set 3 : address roger's comments #

Total comments: 8

Patch Set 4 : Address comments before LGTM #

Total comments: 16

Patch Set 5 : address msw's comments #

Total comments: 11

Patch Set 6 : address Michael's nit comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -2 lines) Patch
M chrome/browser/ui/browser_window.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_base_controller.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/new_avatar_button.cc View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_handler.cc View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
gogerald1
Please review it.
5 years, 7 months ago (2015-05-08 12:30:01 UTC) #2
Roger Tawa OOO till Jul 10th
Hi Ganggui, Some questions below. Thanks, https://codereview.chromium.org/1136693002/diff/1/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/1136693002/diff/1/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode124 chrome/browser/ui/views/profiles/new_avatar_button.cc:124: ProfileChooserView::Hide(); If the ...
5 years, 7 months ago (2015-05-08 14:51:17 UTC) #3
gogerald1
Hi, Please review them, work for windows/Linux and Mac
5 years, 7 months ago (2015-05-13 20:32:54 UTC) #5
Roger Tawa OOO till Jul 10th
A few more questions Ganggui. Thanks. https://codereview.chromium.org/1136693002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1136693002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc#newcode2512 chrome/browser/ui/views/frame/browser_view.cc:2512: if (switches::IsNewAvatarMenu()) { ...
5 years, 7 months ago (2015-05-14 18:55:03 UTC) #6
gogerald1
Addressed Roger's comments https://codereview.chromium.org/1136693002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1136693002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc#newcode2512 chrome/browser/ui/views/frame/browser_view.cc:2512: if (switches::IsNewAvatarMenu()) { On 2015/05/14 18:55:03, ...
5 years, 7 months ago (2015-05-14 21:35:22 UTC) #7
Roger Tawa OOO till Jul 10th
lgtm after addressing comments below. Thanks Ganggui! https://codereview.chromium.org/1136693002/diff/40001/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/1136693002/diff/40001/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode129 chrome/browser/ui/views/profiles/new_avatar_button.cc:129: ProfileChooserView::Hide(); Nit: ...
5 years, 7 months ago (2015-05-15 14:29:18 UTC) #8
groby-ooo-7-16
c/b/ui/cocoa LGTM % nit https://codereview.chromium.org/1136693002/diff/40001/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm (right): https://codereview.chromium.org/1136693002/diff/40001/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm#newcode222 chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm:222: if (menuController_ != nil) nit: ...
5 years, 7 months ago (2015-05-15 16:16:24 UTC) #9
msw
Just some nits, sorry for the delay. https://codereview.chromium.org/1136693002/diff/80001/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/1136693002/diff/80001/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode123 chrome/browser/ui/views/profiles/new_avatar_button.cc:123: // Prevent ...
5 years, 7 months ago (2015-05-19 22:57:49 UTC) #11
gogerald1
address Michael's comments https://codereview.chromium.org/1136693002/diff/40001/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm (right): https://codereview.chromium.org/1136693002/diff/40001/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm#newcode222 chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm:222: if (menuController_ != nil) On 2015/05/15 ...
5 years, 7 months ago (2015-05-19 23:35:13 UTC) #12
msw
https://codereview.chromium.org/1136693002/diff/100001/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/1136693002/diff/100001/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode124 chrome/browser/ui/views/profiles/new_avatar_button.cc:124: // current nit: fix line wrapping... https://codereview.chromium.org/1136693002/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc ...
5 years, 7 months ago (2015-05-20 00:18:12 UTC) #13
gogerald1
https://codereview.chromium.org/1136693002/diff/100001/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/1136693002/diff/100001/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode124 chrome/browser/ui/views/profiles/new_avatar_button.cc:124: // current On 2015/05/20 00:18:11, msw wrote: > nit: ...
5 years, 7 months ago (2015-05-20 14:06:24 UTC) #14
msw
Okay, lgtm https://codereview.chromium.org/1136693002/diff/100001/chrome/browser/ui/webui/signin/inline_login_handler.cc File chrome/browser/ui/webui/signin/inline_login_handler.cc (right): https://codereview.chromium.org/1136693002/diff/100001/chrome/browser/ui/webui/signin/inline_login_handler.cc#newcode151 chrome/browser/ui/webui/signin/inline_login_handler.cc:151: browser->window()->CloseAvatarBubbleFromAvatarButton(); On 2015/05/20 14:06:24, gogerald1 wrote: > ...
5 years, 7 months ago (2015-05-20 16:54:09 UTC) #15
gogerald1
Hi Jay, could you help review "test_browser_window.h" in this cl.
5 years, 7 months ago (2015-05-20 17:46:45 UTC) #17
Jay Civelli
LGTM for chrome/test
5 years, 7 months ago (2015-05-20 17:49:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136693002/120001
5 years, 7 months ago (2015-05-20 18:29:56 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 7 months ago (2015-05-20 20:01:35 UTC) #22
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/131615b8cfd0e9b3045f3384e06ec3d8eb4f272a Cr-Commit-Position: refs/heads/master@{#330789}
5 years, 7 months ago (2015-05-20 20:02:27 UTC) #23
gogerald1
A revert of this CL (patchset #6 id:120001) has been created in https://codereview.chromium.org/1235173002/ by gogerald@chromium.org. ...
5 years, 5 months ago (2015-07-14 14:15:49 UTC) #24
msw
5 years, 5 months ago (2015-07-14 16:49:57 UTC) #25
Message was sent while issue was closed.
On 2015/07/14 14:15:49, gogerald1 wrote:
> A revert of this CL (patchset #6 id:120001) has been created in
> https://codereview.chromium.org/1235173002/ by mailto:gogerald@chromium.org.
> 
> The reason for reverting is: This CL reveals issues can not be solved
> immediately, so we revert it to allow time to solve them or find alternative
> solutions..

Your revert message should give a more concrete reason for the revert. Why
exactly didn't the CL fix the bug, or what new problem did it introduce? You
wrote the same revert message on another CL,
https://codereview.chromium.org/1237123002/ neither has enough detail to let
anyone understand why the cl is reverted.

Powered by Google App Engine
This is Rietveld 408576698