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

Unified Diff: content/browser/web_contents/web_contents_impl_unittest.cc

Issue 18068017: Change RenderViewHostTestHarness to create BrowserContext after thread startup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/web_contents/web_contents_impl_unittest.cc
diff --git a/content/browser/web_contents/web_contents_impl_unittest.cc b/content/browser/web_contents/web_contents_impl_unittest.cc
index c1399ea537ead7a05cb253dc7a8f60754d3fe200..678f13603f245100f8fd0b02f8a7873b85f9790b 100644
--- a/content/browser/web_contents/web_contents_impl_unittest.cc
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc
@@ -562,7 +562,7 @@ TEST_F(WebContentsImplTest, NavigateTwoTabsCrossSite) {
// Open a new contents with the same SiteInstance, navigated to the same site.
scoped_ptr<TestWebContents> contents2(
- TestWebContents::Create(browser_context_.get(), instance1));
+ TestWebContents::Create(browser_context(), instance1));
contents2->transition_cross_site = true;
contents2->GetController().LoadURL(url, Referrer(),
PAGE_TRANSITION_TYPED,
@@ -742,7 +742,7 @@ TEST_F(WebContentsImplTest, CrossSiteComparesAgainstCurrentPage) {
// Open a related contents to a second site.
scoped_ptr<TestWebContents> contents2(
- TestWebContents::Create(browser_context_.get(), instance1));
+ TestWebContents::Create(browser_context(), instance1));
contents2->transition_cross_site = true;
const GURL url2("http://www.yahoo.com");
contents2->GetController().LoadURL(url2, Referrer(),
« no previous file with comments | « content/browser/web_contents/web_contents_delegate_unittest.cc ('k') | content/public/test/test_renderer_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698