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

Unified Diff: chromecast/browser/test/chromecast_browser_test.cc

Issue 823763002: Seperate creation of WebContents and window tree in CastContentWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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: chromecast/browser/test/chromecast_browser_test.cc
diff --git a/chromecast/browser/test/chromecast_browser_test.cc b/chromecast/browser/test/chromecast_browser_test.cc
index bd5dee6e486c01ad78067f3b9af9fc9b3d82833a..f537ace6a7d5bfb9d46c8beaf3a7c5530d1df455 100644
--- a/chromecast/browser/test/chromecast_browser_test.cc
+++ b/chromecast/browser/test/chromecast_browser_test.cc
@@ -70,8 +70,9 @@ void ChromecastBrowserTest::NavigateToURL(content::WebContents* window,
content::WebContents* ChromecastBrowserTest::CreateBrowser() {
window_.reset(new CastContentWindow);
gfx::Size initial_size(1280, 720);
- web_contents_ = window_->Create(
- initial_size, CastBrowserProcess::GetInstance()->browser_context());
+
+ web_contents_ = window_->CreateWebContents(initial_size, browser_context());
+ window_->CreateWindowTree(initial_size, web_contents_.get());
return web_contents_.get();
}

Powered by Google App Engine
This is Rietveld 408576698