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

Unified Diff: content/browser/renderer_host/render_process_host_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
Index: content/browser/renderer_host/render_process_host_browsertest.cc
===================================================================
--- content/browser/renderer_host/render_process_host_browsertest.cc (revision 116109)
+++ content/browser/renderer_host/render_process_host_browsertest.cc (working copy)
@@ -15,6 +15,8 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_switches.h"
+using content::WebContents;
+
RenderProcessHostTest::RenderProcessHostTest() {
EnableDOMAutomation();
}
@@ -42,8 +44,8 @@
// handle.
base::ProcessHandle RenderProcessHostTest::ShowSingletonTab(const GURL& page) {
browser()->ShowSingletonTab(page);
- TabContents* tc = browser()->GetSelectedTabContents();
- CHECK(tc->GetURL() == page);
+ WebContents* wc = browser()->GetSelectedWebContents();
+ CHECK(wc->GetURL() == page);
// Ensure that the backgrounding / foregrounding gets a chance to run.
content::BrowserThread::PostTaskAndReply(
@@ -51,7 +53,7 @@
base::Bind(DoNothing), MessageLoop::QuitClosure());
MessageLoop::current()->Run();
- return tc->GetRenderProcessHost()->GetHandle();
+ return wc->GetRenderProcessHost()->GetHandle();
}
IN_PROC_BROWSER_TEST_F(RenderProcessHostTest, ProcessPerTab) {

Powered by Google App Engine
This is Rietveld 408576698