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

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

Issue 2777533003: mash: Do not show avatar on browser frame (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7f9ed6612eec2dca27ea4ada4ffa76e4e3bd71ea..3588277ed448b6a6a9d0636657813d39edfe10d1 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
@@ -368,6 +368,16 @@ void BrowserNonClientFrameViewMus::UpdateProfileIcons() {
return;
}
#endif
+ Browser* browser = browser_view()->browser();
+
+ // Similar logic as in BrowserNonClientFrameViewAsh::UpdateProfileIcons (minus
+ // the multi-profile part). That is, no profile indicator for non-tabbed and
+ // non-app browser window, or regular/guest user browser window.
+ if (!browser->is_type_tabbed() && !browser->is_app())
+ return;
+ if (browser_view()->IsRegularOrGuestSession())
+ return;
+
UpdateProfileIndicatorIcon();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698