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

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

Issue 895803003: [Profiles] Remove the NotificationService from the ProfileInfoCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cait nit Created 5 years, 10 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.h
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view.h b/chrome/browser/ui/views/frame/browser_non_client_frame_view.h
index 43c820aeb4812fd0fac85db9a1f124b673d9f17a..984c9accd21aec2af4a5963a55519201f80ea07f 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view.h
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view.h
@@ -66,6 +66,12 @@ class BrowserNonClientFrameView : public views::NonClientFrameView,
BrowserView* browser_view() const { return browser_view_; }
BrowserFrame* frame() const { return frame_; }
+ // Updates the avatar button using the old or new UI based on the BrowserView
+ // type, and the presence of the --enable-new-avatar-menu flag. Calls either
+ // UpdateAvatarInfo() or UpdateNewStyleAvatarInfo() accordingly.
+ void UpdateAvatar(views::ButtonListener* listener,
+ const NewAvatarButton::AvatarButtonStyle style);
+
// Updates the title and icon of the avatar button.
void UpdateAvatarInfo();

Powered by Google App Engine
This is Rietveld 408576698