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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2095793002: Convert determining restore bounds to use ash/common type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak Created 4 years, 6 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 | « no previous file | ash/wm/maximize_mode/maximize_mode_window_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index 741abe960795b7f531e81f345cb4ebc15cf949ef..782b1b63edcca06f9aa08d193d3630b1644517f8 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -427,7 +427,8 @@ void WmWindowAura::SetRestoreBoundsInScreen(const gfx::Rect& bounds) {
}
gfx::Rect WmWindowAura::GetRestoreBoundsInScreen() const {
- return *window_->GetProperty(aura::client::kRestoreBoundsKey);
+ gfx::Rect* bounds = window_->GetProperty(aura::client::kRestoreBoundsKey);
+ return bounds ? *bounds : gfx::Rect();
}
bool WmWindowAura::Contains(const WmWindow* other) const {
« no previous file with comments | « no previous file | ash/wm/maximize_mode/maximize_mode_window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698