| Index: chrome/test/gpu/gpu_pixel_browsertest.cc
|
| diff --git a/chrome/test/gpu/gpu_pixel_browsertest.cc b/chrome/test/gpu/gpu_pixel_browsertest.cc
|
| index 39ed3b2c9b1fe09520610725c1186f62764ff75e..2fe6b41c92ac0a269f9ff1ee0668da1bacb4e7cc 100644
|
| --- a/chrome/test/gpu/gpu_pixel_browsertest.cc
|
| +++ b/chrome/test/gpu/gpu_pixel_browsertest.cc
|
| @@ -166,7 +166,7 @@ class GpuPixelBrowserTest : public InProcessBrowserTest {
|
| js_call << ");";
|
|
|
| ASSERT_TRUE(ui_test_utils::ExecuteJavaScript(
|
| - browser()->GetSelectedWebContents()->GetRenderViewHost(),
|
| + browser()->GetActiveWebContents()->GetRenderViewHost(),
|
| L"", js_call.str()));
|
|
|
| std::string message;
|
| @@ -373,7 +373,7 @@ class GpuPixelBrowserTest : public InProcessBrowserTest {
|
| // have if the tab contents have the desired size.
|
| gfx::Rect GetNewTabContainerBounds(const gfx::Size& desired_size) {
|
| gfx::Rect container_rect;
|
| - browser()->GetSelectedWebContents()->GetContainerBounds(&container_rect);
|
| + browser()->GetActiveWebContents()->GetContainerBounds(&container_rect);
|
| // Size cannot be negative, so use a point.
|
| gfx::Point correction(
|
| desired_size.width() - container_rect.size().width(),
|
| @@ -393,7 +393,7 @@ class GpuPixelBrowserTest : public InProcessBrowserTest {
|
|
|
| gfx::Rect root_bounds = browser()->window()->GetBounds();
|
| gfx::Rect tab_contents_bounds;
|
| - browser()->GetSelectedWebContents()->GetContainerBounds(
|
| + browser()->GetActiveWebContents()->GetContainerBounds(
|
| &tab_contents_bounds);
|
|
|
| gfx::Rect snapshot_bounds(tab_contents_bounds.x() - root_bounds.x(),
|
|
|