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_) { |