Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4201)

Unified Diff: chrome/browser/speech/speech_input_bubble_browsertest.cc

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sessions/tab_restore_service_delegate.h ('k') | chrome/browser/ssl/ssl_browser_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/speech_input_bubble_browsertest.cc
===================================================================
--- chrome/browser/speech/speech_input_bubble_browsertest.cc (revision 116109)
+++ chrome/browser/speech/speech_input_bubble_browsertest.cc (working copy)
@@ -23,16 +23,14 @@
IN_PROC_BROWSER_TEST_F(SpeechInputBubbleTest, CreateAndDestroy) {
gfx::Rect element_rect(100, 100, 100, 100);
scoped_ptr<SpeechInputBubble> bubble(SpeechInputBubble::Create(
- browser()->GetSelectedTabContentsWrapper()->web_contents(), this,
- element_rect));
+ browser()->GetSelectedWebContents(), this, element_rect));
EXPECT_TRUE(bubble.get());
}
IN_PROC_BROWSER_TEST_F(SpeechInputBubbleTest, ShowAndDestroy) {
gfx::Rect element_rect(100, 100, 100, 100);
scoped_ptr<SpeechInputBubble> bubble(SpeechInputBubble::Create(
- browser()->GetSelectedTabContentsWrapper()->web_contents(), this,
- element_rect));
+ browser()->GetSelectedWebContents(), this, element_rect));
EXPECT_TRUE(bubble.get());
bubble->Show();
}
@@ -40,8 +38,7 @@
IN_PROC_BROWSER_TEST_F(SpeechInputBubbleTest, ShowAndHide) {
gfx::Rect element_rect(100, 100, 100, 100);
scoped_ptr<SpeechInputBubble> bubble(SpeechInputBubble::Create(
- browser()->GetSelectedTabContentsWrapper()->web_contents(), this,
- element_rect));
+ browser()->GetSelectedWebContents(), this, element_rect));
EXPECT_TRUE(bubble.get());
bubble->Show();
bubble->Hide();
@@ -50,8 +47,7 @@
IN_PROC_BROWSER_TEST_F(SpeechInputBubbleTest, ShowAndHideTwice) {
gfx::Rect element_rect(100, 100, 100, 100);
scoped_ptr<SpeechInputBubble> bubble(SpeechInputBubble::Create(
- browser()->GetSelectedTabContentsWrapper()->web_contents(), this,
- element_rect));
+ browser()->GetSelectedWebContents(), this, element_rect));
EXPECT_TRUE(bubble.get());
bubble->Show();
bubble->Hide();
« no previous file with comments | « chrome/browser/sessions/tab_restore_service_delegate.h ('k') | chrome/browser/ssl/ssl_browser_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698