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

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

Issue 18083014: Create new look of the avatar label. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded code and use fixed font size. Created 7 years, 5 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.cc
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
index d7e2f76ef455e98e19f2d8dc908708968dbc984b..ccf676dfbddf8cc82e7e9b8ae826fc25aca734ba 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
@@ -56,9 +56,6 @@ void BrowserNonClientFrameView::OnThemeChanged() {
void BrowserNonClientFrameView::UpdateAvatarInfo() {
if (browser_view_->ShouldShowAvatar()) {
if (!avatar_button_) {
- avatar_button_ = new AvatarMenuButton(browser_view_->browser(),
- browser_view_->IsOffTheRecord());
- AddChildView(avatar_button_);
#if defined(ENABLE_MANAGED_USERS)
Profile* profile = browser_view_->browser()->profile();
ManagedUserService* service =
@@ -69,6 +66,9 @@ void BrowserNonClientFrameView::UpdateAvatarInfo() {
AddChildView(avatar_label_);
}
#endif
+ avatar_button_ = new AvatarMenuButton(browser_view_->browser(),
+ browser_view_->IsOffTheRecord());
+ AddChildView(avatar_button_);
frame_->GetRootView()->Layout();
}
} else if (avatar_button_) {
« no previous file with comments | « chrome/browser/ui/views/avatar_label.cc ('k') | chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698