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

Unified Diff: content/browser/web_contents/web_contents_delegate_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_delegate_unittest.cc
diff --git a/content/browser/web_contents/web_contents_delegate_unittest.cc b/content/browser/web_contents/web_contents_delegate_unittest.cc
index e5bb6790bc6f34a8598c7a3065e3be52e4a00580..cdc0d8c555df11faeb03c4fcec1bcf1ad74565ee 100644
--- a/content/browser/web_contents/web_contents_delegate_unittest.cc
+++ b/content/browser/web_contents/web_contents_delegate_unittest.cc
@@ -21,9 +21,9 @@ class WebContentsDelegateTest : public RenderViewHostImplTestHarness {
TEST_F(WebContentsDelegateTest, UnregisterInDestructor) {
scoped_ptr<WebContentsImpl> contents_a(static_cast<WebContentsImpl*>(
- WebContents::Create(WebContents::CreateParams(browser_context_.get()))));
+ WebContents::Create(WebContents::CreateParams(browser_context()))));
scoped_ptr<WebContentsImpl> contents_b(static_cast<WebContentsImpl*>(
- WebContents::Create(WebContents::CreateParams(browser_context_.get()))));
+ WebContents::Create(WebContents::CreateParams(browser_context()))));
EXPECT_EQ(NULL, contents_a->GetDelegate());
EXPECT_EQ(NULL, contents_b->GetDelegate());

Powered by Google App Engine
This is Rietveld 408576698