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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc

Issue 1529703003: [EXPERIMENT] [MacViews] Enable and handle the profile switcher. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc
index 1e3021267d108bc8de56b440b0d2a658237063e2..33aa92bd5a75fe153b05e0d63545807bc9156cbc 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc
@@ -220,10 +220,8 @@ int BrowserNonClientFrameViewMus::NonClientHitTest(const gfx::Point& point) {
int hit_test = HTCLIENT;
#if defined(FRAME_AVATAR_BUTTON)
- if (hit_test == HTCAPTION && profile_switcher_.view() &&
- ConvertedHitTest(this, profile_switcher_.view(), point)) {
+ if (profile_switcher_.HitTest(point))
return HTCLIENT;
- }
#endif
// When the window is restored we want a large click target above the tabs

Powered by Google App Engine
This is Rietveld 408576698