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

Unified Diff: content/browser/webkit_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 | « content/browser/tab_contents/tab_contents.cc ('k') | content/public/browser/download_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webkit_browsertest.cc
===================================================================
--- content/browser/webkit_browsertest.cc (revision 116109)
+++ content/browser/webkit_browsertest.cc (working copy)
@@ -10,6 +10,8 @@
typedef InProcessBrowserTest WebKitBrowserTest;
+using content::WebContents;
+
const char kAsyncScriptThatAbortsOnEndPage[] =
"files/webkit/async_script_abort_on_end.html";
@@ -26,12 +28,12 @@
ui_test_utils::NavigateToURL(browser(), url);
- TabContents* tab_contents = browser()->GetSelectedTabContents();
+ WebContents* web_contents = browser()->GetSelectedWebContents();
// If you are seeing this test fail, please strongly investigate the
// possibility that http://crbug.com/75604 and
// https://bugs.webkit.org/show_bug.cgi?id=71122 have reverted before
// marking this as flakey.
- EXPECT_FALSE(tab_contents->IsCrashed());
+ EXPECT_FALSE(web_contents->IsCrashed());
}
// This is a browser test because the DumpRenderTree framework holds
@@ -50,6 +52,6 @@
ui_test_utils::NavigateToURL(browser(), url);
- TabContents* tab_contents = browser()->GetSelectedTabContents();
- EXPECT_FALSE(tab_contents->IsCrashed());
+ WebContents* web_contents = browser()->GetSelectedWebContents();
+ EXPECT_FALSE(web_contents->IsCrashed());
}
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/public/browser/download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698