Index: ash/shell/widgets.cc |
diff --git a/ash/shell/widgets.cc b/ash/shell/widgets.cc |
index 7a71eb8d0bec769ec3161d488370f281bec2b4cf..09b192ab5fe8829dcfaba2a3365a65d05913f40b 100644 |
--- a/ash/shell/widgets.cc |
+++ b/ash/shell/widgets.cc |
@@ -32,7 +32,7 @@ class WidgetsWindow : public views::WidgetDelegateView { |
// Overridden from views::View: |
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
virtual void Layout() OVERRIDE; |
- virtual gfx::Size GetPreferredSize() OVERRIDE; |
+ virtual gfx::Size GetPreferredSize() const OVERRIDE; |
// Overridden from views::WidgetDelegate: |
virtual views::View* GetContentsView() OVERRIDE; |
@@ -113,7 +113,7 @@ void WidgetsWindow::Layout() { |
} |
} |
-gfx::Size WidgetsWindow::GetPreferredSize() { |
+gfx::Size WidgetsWindow::GetPreferredSize() const { |
return gfx::Size(kWindowWidth, kWindowHeight); |
} |