summaryrefslogtreecommitdiffstats
path: root/chrome/test/interactive_ui
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/interactive_ui')
-rw-r--r--chrome/test/interactive_ui/view_event_test_base.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/test/interactive_ui/view_event_test_base.cc b/chrome/test/interactive_ui/view_event_test_base.cc
index 8cf9e61..9f36318 100644
--- a/chrome/test/interactive_ui/view_event_test_base.cc
+++ b/chrome/test/interactive_ui/view_event_test_base.cc
@@ -17,11 +17,10 @@ class TestView : public ChromeViews::View {
TestView() {}
void set_preferred_size(const gfx::Size& size) { preferred_size_ = size; }
- void GetPreferredSize(CSize* out) {
+ gfx::Size GetPreferredSize() {
if (!preferred_size_.IsEmpty())
- *out = preferred_size_.ToSIZE();
- else
- View::GetPreferredSize(out);
+ return preferred_size_;
+ return View::GetPreferredSize();
}
private: