Index: chrome/browser/extensions/api/app_window/app_window_api.cc |
=================================================================== |
--- chrome/browser/extensions/api/app_window/app_window_api.cc (revision 167502) |
+++ chrome/browser/extensions/api/app_window/app_window_api.cc (working copy) |
@@ -183,14 +183,14 @@ |
if (maximum_size.width() && |
create_params.bounds.width() > maximum_size.width()) |
create_params.bounds.set_width(maximum_size.width()); |
- if (create_params.bounds.width() != 0 && |
+ if (create_params.bounds.width() != INT_MIN && |
create_params.bounds.width() < minimum_size.width()) |
create_params.bounds.set_width(minimum_size.width()); |
if (maximum_size.height() && |
create_params.bounds.height() > maximum_size.height()) |
create_params.bounds.set_height(maximum_size.height()); |
- if (create_params.bounds.height() != 0 && |
+ if (create_params.bounds.height() != INT_MIN && |
create_params.bounds.height() < minimum_size.height()) |
create_params.bounds.set_height(minimum_size.height()); |