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

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

Issue 2053563002: Incognito icon shows up again when opening incognito browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Ran git cl format. 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
« 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_ash.cc
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
index 37f4e5e2d63390650cdd13366e3835b71b8b3b6f..4a415b2d2a036bc0b7927e2a311c6490bddec9e3 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc
@@ -397,7 +397,9 @@ gfx::ImageSkia BrowserNonClientFrameViewAsh::GetFaviconForTabIconView() {
// BrowserNonClientFrameView:
void BrowserNonClientFrameViewAsh::UpdateProfileIcons() {
Browser* browser = browser_view()->browser();
- if ((browser->is_type_tabbed() || browser->is_app()) &&
+ if (!browser->is_type_tabbed() && !browser->is_app())
+ return;
+ if ((browser->profile()->GetProfileType() == Profile::INCOGNITO_PROFILE) ||
chrome::MultiUserWindowManager::ShouldShowAvatar(
browser_view()->GetNativeWindow())) {
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