Index: ash/shell/window_type_launcher.cc |
diff --git a/ash/shell/window_type_launcher.cc b/ash/shell/window_type_launcher.cc |
index bc25b7992134d1cef7661ba83375cfe33b30c3cb..bc8e9f4b35b5be7183959195628628fea7436937 100644 |
--- a/ash/shell/window_type_launcher.cc |
+++ b/ash/shell/window_type_launcher.cc |
@@ -66,7 +66,9 @@ class ModalWindow : public views::WidgetDelegateView, |
void OnPaint(gfx::Canvas* canvas) override { |
canvas->FillRect(GetLocalBounds(), color_); |
} |
- gfx::Size GetPreferredSize() const override { return gfx::Size(200, 200); } |
+ gfx::Size CalculatePreferredSize() const override { |
+ return gfx::Size(200, 200); |
+ } |
void Layout() override { |
gfx::Size open_ps = open_button_->GetPreferredSize(); |
gfx::Rect local_bounds = GetLocalBounds(); |
@@ -125,7 +127,9 @@ class NonModalTransient : public views::WidgetDelegateView { |
void OnPaint(gfx::Canvas* canvas) override { |
canvas->FillRect(GetLocalBounds(), color_); |
} |
- gfx::Size GetPreferredSize() const override { return gfx::Size(250, 250); } |
+ gfx::Size CalculatePreferredSize() const override { |
+ return gfx::Size(250, 250); |
+ } |
// Overridden from views::WidgetDelegate: |
bool CanResize() const override { return true; } |