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

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

Issue 1972033002: Simplify some old avatar menu button code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reinstate ash browser test fix Created 4 years, 7 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_ash.h
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h
index 7fc8ec93150c1389d1258246e725bc519d4cc60f..d0ef326cc1587b3a4575232da594a0b76f870407 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h
@@ -74,7 +74,7 @@ class BrowserNonClientFrameViewAsh : public BrowserNonClientFrameView,
protected:
// BrowserNonClientFrameView:
- void UpdateAvatar() override;
+ void UpdateProfileIcons() override;
private:
FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, WindowHeader);
@@ -84,6 +84,8 @@ class BrowserNonClientFrameViewAsh : public BrowserNonClientFrameView,
ImmersiveFullscreen);
FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest,
ToggleMaximizeModeRelayout);
+ FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest,
+ AvatarDisplayOnTeleportedWindow);
FRIEND_TEST_ALL_PREFIXES(WebAppLeftHeaderViewTest, BackButton);
FRIEND_TEST_ALL_PREFIXES(WebAppLeftHeaderViewTest, LocationIcon);
friend class BrowserHeaderPainterAsh;
@@ -114,8 +116,7 @@ class BrowserNonClientFrameViewAsh : public BrowserNonClientFrameView,
// accoutrements.
bool UseWebAppHeaderStyle() const;
- // Layout the avatar button.
- void LayoutAvatar();
+ void LayoutProfileIndicatorIcon();
// Returns true if there is anything to paint. Some fullscreen windows do not
// need their frames painted.

Powered by Google App Engine
This is Rietveld 408576698