Support full-screen and single-profile avatar bubbles.
Enable IDC_SHOW_AVATAR_MENU for normal browser windows. (full-screen and single-profile windows are now allowed) (non-tabbed and incognito windows are still disallowed) Nix BrowserCommandController's use of ProfileManager. (no commands rely on the profile count anymore) Cleanup some BrowserCommandController code. Inline AvatarMenuButton::ShowAvatarBubble in BrowserView. (ShowAvatarBubbleFromAvatarButton needs to set an anchor) (single-profile windows have no avatar icon; use hotdogs) Anchor to the Chrome menu button in Mac single-profile too. Take an ArrowPaintType in AvatarMenuBubbleView::ShowBubble. (lets fullscreen hide the arrow, there's no visible anchor) (this corresponds with fullscreen bookmark bubble behavior) Remove a stale Windows Valgrind DrMemory test exclusion entry. (test name was changed, but the exclusion wasn't; isn't needed) BUG=255452,167014 TEST=The avatar menu shows for Ctrl+Shift+M even in fullscreen and even for single-profile Chrome windows. Test with and without the experimental --new-profile-management, and in LTR and RTL Chrome UI modes. R=pkasting@chromium.org, asvitkine@chromium.org Review URL: https://codereview.chromium.org/264303006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270126 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment