Index: chrome/browser/ui/gtk/extensions/shell_window_gtk.cc |
diff --git a/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc b/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc |
index 2b298f776072c77802c4c0bc26b876b001c6ddbe..0dce063f453ac7763615a160cca72818194bdc88 100644 |
--- a/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc |
+++ b/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc |
@@ -19,35 +19,9 @@ ShellWindowGtk::ShellWindowGtk(ExtensionHost* host) |
gtk_container_add(GTK_CONTAINER(window_), host_->view()->native_view()); |
- const Extension* extension = host_->extension(); |
+ gtk_window_set_default_size(window_, kDefaultWidth, kDefaultHeight); |
- // TOOD(mihaip): restore prior window dimensions and positions on relaunch. |
- gtk_window_set_default_size( |
- window_, extension->launch_width(), extension->launch_height()); |
- |
- int min_width = extension->launch_min_width(); |
- int min_height = extension->launch_min_height(); |
- int max_width = extension->launch_max_width(); |
- int max_height = extension->launch_max_height(); |
- GdkGeometry hints; |
- int hints_mask = 0; |
- if (min_width || min_height) { |
- hints.min_height = min_height; |
- hints.min_width = min_width; |
- hints_mask |= GDK_HINT_MIN_SIZE; |
- } |
- if (max_width || max_height) { |
- hints.max_height = max_height ? max_height : G_MAXINT; |
- hints.max_width = max_width ? max_width : G_MAXINT; |
- hints_mask |= GDK_HINT_MAX_SIZE; |
- } |
- if (hints_mask) { |
- gtk_window_set_geometry_hints( |
- window_, |
- GTK_WIDGET(window_), |
- &hints, |
- static_cast<GdkWindowHints>(hints_mask)); |
- } |
+ const Extension* extension = host_->extension(); |
// TODO(mihaip): Mirror contents of <title> tag in window title |
gtk_window_set_title(window_, extension->name().c_str()); |