Index: content/browser/device_orientation/device_orientation_browsertest.cc |
diff --git a/content/browser/device_orientation/device_orientation_browsertest.cc b/content/browser/device_orientation/device_orientation_browsertest.cc |
index dec35331723c6666eeff7816143d13a792e8aaae..6eabd93c37ab71b24f92fed224d84f972701d198 100644 |
--- a/content/browser/device_orientation/device_orientation_browsertest.cc |
+++ b/content/browser/device_orientation/device_orientation_browsertest.cc |
@@ -67,7 +67,7 @@ IN_PROC_BROWSER_TEST_F(DeviceOrientationBrowserTest, BasicTest) { |
// Check that the page got the event it expected and that the provider |
// saw requests for adding and removing an observer. |
- EXPECT_EQ("pass", browser()->GetSelectedWebContents()->GetURL().ref()); |
+ EXPECT_EQ("pass", browser()->GetActiveWebContents()->GetURL().ref()); |
EXPECT_TRUE(provider->added_observer_); |
EXPECT_TRUE(provider->removed_observer_); |
} |