Index: chrome/test/base/view_event_test_base.cc |
diff --git a/chrome/test/base/view_event_test_base.cc b/chrome/test/base/view_event_test_base.cc |
index 2d64c5d408c07be184b86a8d40b21c808205ad9a..39293ab0567c69fd3b1274581c910523c81a97c1 100644 |
--- a/chrome/test/base/view_event_test_base.cc |
+++ b/chrome/test/base/view_event_test_base.cc |
@@ -54,7 +54,7 @@ class TestView : public views::View { |
PreferredSizeChanged(); |
} |
- virtual gfx::Size GetPreferredSize() OVERRIDE { |
+ virtual gfx::Size GetPreferredSize() const OVERRIDE { |
if (!preferred_size_.IsEmpty()) |
return preferred_size_; |
return View::GetPreferredSize(); |
@@ -228,7 +228,7 @@ void ViewEventTestBase::StartMessageLoopAndRunTest() { |
content::RunMessageLoop(); |
} |
-gfx::Size ViewEventTestBase::GetPreferredSize() { |
+gfx::Size ViewEventTestBase::GetPreferredSize() const { |
return gfx::Size(); |
} |