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

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

Issue 11818065: OK, here's john's patch plus my sync stuff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Redisable PlatformAppBrowserTest.WebContentsHasFocus on aura Created 7 years, 10 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
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_root_window_host_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 9a9ad4b87f8e110ed29500fdef5beef72c77a29c..a22691dfff740bc3499ad6b0f6f4e0cae1d664f8 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -1354,7 +1354,8 @@ void Widget::SetInitialBounds(const gfx::Rect& bounds) {
// If we're going to maximize, wait until Show is invoked to set the
// bounds. That way we avoid a noticeable resize.
initial_restored_bounds_ = saved_bounds;
- } else {
+ } else if (!saved_bounds.IsEmpty()) {
+ // If the saved bounds are valid, use them.
SetBounds(saved_bounds);
}
} else {
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_root_window_host_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698