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

Unified Diff: ui/views/widget/widget.cc

Issue 10993087: Handle titlebar text updates properly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 51c4fe0b9fd905494e60387c3432417209c3babc..73e1cf0692bb5314d2b5608833645e45e4373297 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -735,8 +735,9 @@ void Widget::UpdateWindowTitle() {
return;
// If the non-client view is rendering its own title, it'll need to relayout
- // now.
+ // now and to get a paint update later on.
non_client_view_->Layout();
+ non_client_view_->UpdateWindowTitle();
// Update the native frame's text. We do this regardless of whether or not
// the native frame is being used, since this also updates the taskbar, etc.

Powered by Google App Engine
This is Rietveld 408576698