diff options
Diffstat (limited to 'content/browser/speech/speech_recognition_browsertest.cc')
-rw-r--r-- | content/browser/speech/speech_recognition_browsertest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/speech/speech_recognition_browsertest.cc b/content/browser/speech/speech_recognition_browsertest.cc index f812ebf..bdd3843 100644 --- a/content/browser/speech/speech_recognition_browsertest.cc +++ b/content/browser/speech/speech_recognition_browsertest.cc @@ -202,7 +202,7 @@ class SpeechRecognitionBrowserTest : public InProcessBrowserTest { mouse_event.x = 0; mouse_event.y = 0; mouse_event.clickCount = 1; - WebContents* web_contents = browser()->GetSelectedWebContents(); + WebContents* web_contents = browser()->GetActiveWebContents(); ui_test_utils::WindowedNotificationObserver observer( content::NOTIFICATION_LOAD_STOP, @@ -225,7 +225,7 @@ class SpeechRecognitionBrowserTest : public InProcessBrowserTest { // then sets the URL fragment as 'pass' if it received the expected string. LoadAndStartSpeechRecognitionTest(filename); - EXPECT_EQ("pass", browser()->GetSelectedWebContents()->GetURL().ref()); + EXPECT_EQ("pass", browser()->GetActiveWebContents()->GetURL().ref()); } // InProcessBrowserTest methods. |