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

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

Issue 200483004: Show avatar icon on V2 app's frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 701349c95dda52e98df647693f68e3e2b827bbd0..40150069c7498a7ae114f3f81af1a21157853120 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
@@ -68,6 +68,7 @@ void BrowserNonClientFrameView::UpdateAvatarInfo() {
browser_view_->browser(), !browser_view_->IsRegularOrGuestSession());
avatar_button_->set_id(VIEW_ID_AVATAR_BUTTON);
AddChildView(avatar_button_);
+ InvalidateLayout();
oshima 2014/03/14 20:40:44 This is necessary because adding child does not in
Mr4D (OOO till 08-26) 2014/03/14 22:01:30 Thanks for the explanation! It might be good to ad
oshima 2014/03/15 01:32:32 Done.
frame_->GetRootView()->Layout();
}
} else if (avatar_button_) {

Powered by Google App Engine
This is Rietveld 408576698