Commit 57372056 authored by derekjchow's avatar derekjchow Committed by Commit bot

Fix chromecast_browser_test.

Use correct browser context when creating web_contents.

R=gunsch@chromium.org
BUG=

Review URL: https://codereview.chromium.org/818283002

Cr-Commit-Position: refs/heads/master@{#309596}
parent 94ff17c7
...@@ -71,7 +71,9 @@ content::WebContents* ChromecastBrowserTest::CreateBrowser() { ...@@ -71,7 +71,9 @@ content::WebContents* ChromecastBrowserTest::CreateBrowser() {
window_.reset(new CastContentWindow); window_.reset(new CastContentWindow);
gfx::Size initial_size(1280, 720); gfx::Size initial_size(1280, 720);
web_contents_ = window_->CreateWebContents(initial_size, browser_context()); web_contents_ = window_->CreateWebContents(
initial_size,
CastBrowserProcess::GetInstance()->browser_context());
window_->CreateWindowTree(initial_size, web_contents_.get()); window_->CreateWindowTree(initial_size, web_contents_.get());
return web_contents_.get(); return web_contents_.get();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment