Index: content/browser/media/capture/web_contents_video_capture_device_unittest.cc |
diff --git a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc |
index d0c7a8859b48c260d65e60594013822826f50013..e3e1efce6f4062b2fffaf062b642aec521f64cfd 100644 |
--- a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc |
+++ b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc |
@@ -1063,10 +1063,10 @@ TEST_F(MAYBE_WebContentsVideoCaptureDeviceTest, |
// the |oddball_size| is always the expected size; whereas for the |
// variable-resolution cases, the |standard_size| is the expected size. |
// Also, adjust to account for the device scale factor. |
- gfx::Size capture_preferred_size = gfx::ToFlooredSize(gfx::ScaleSize( |
- policy == media::RESOLUTION_POLICY_FIXED_RESOLUTION ? |
- oddball_size : standard_size, |
- 1.0f / GetDeviceScaleFactor())); |
+ gfx::Size capture_preferred_size = gfx::ScaleToFlooredSize( |
+ policy == media::RESOLUTION_POLICY_FIXED_RESOLUTION ? oddball_size |
+ : standard_size, |
+ 1.0f / GetDeviceScaleFactor()); |
ASSERT_NE(capture_preferred_size, web_contents()->GetPreferredSize()); |
// Start the WebContentsVideoCaptureDevice. |