Index: apps/shell_window_geometry_cache.cc |
diff --git a/apps/shell_window_geometry_cache.cc b/apps/shell_window_geometry_cache.cc |
index 31b44a42477c6c66db045c8bcd598e0626df01c8..a3b0bcf036afb16b3ee92ffef1546427ec13a38b 100644 |
--- a/apps/shell_window_geometry_cache.cc |
+++ b/apps/shell_window_geometry_cache.cc |
@@ -111,6 +111,9 @@ void ShellWindowGeometryCache::SyncToStorage() { |
base::DictionaryValue* value = new base::DictionaryValue; |
const gfx::Rect& bounds = it->second.bounds; |
const gfx::Rect& screen_bounds = it->second.screen_bounds; |
+ DCHECK(!bounds.IsEmpty()); |
+ DCHECK(!screen_bounds.IsEmpty()); |
+ DCHECK(it->second.window_state != ui::SHOW_STATE_DEFAULT); |
value->SetInteger("x", bounds.x()); |
value->SetInteger("y", bounds.y()); |
value->SetInteger("w", bounds.width()); |