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

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..4e58bcd1ffd9af15fb0a6ae62ca478d8e33bedee 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,8 @@ void BrowserNonClientFrameView::UpdateAvatarInfo() {
browser_view_->browser(), !browser_view_->IsRegularOrGuestSession());
avatar_button_->set_id(VIEW_ID_AVATAR_BUTTON);
AddChildView(avatar_button_);
+ // Invalidate here as adding a child does not invalidate layout.
+ InvalidateLayout();
pkotwicz 2014/03/18 15:29:44 This change is not related to packaged apps. Can y
oshima 2014/03/18 16:59:50 Oh, sorry I forgot to remove this file. I'll land
frame_->GetRootView()->Layout();
}
} else if (avatar_button_) {

Powered by Google App Engine
This is Rietveld 408576698