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

Unified Diff: chromecast/browser/service/cast_service_simple.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/service/cast_service_simple.cc
diff --git a/chromecast/browser/service/cast_service_simple.cc b/chromecast/browser/service/cast_service_simple.cc
index e8adf81cf79940c551f1749fb84e1d6adf7116fd..36f8b64bcc66eec55a396ff6997dbcf35c54e96b 100644
--- a/chromecast/browser/service/cast_service_simple.cc
+++ b/chromecast/browser/service/cast_service_simple.cc
@@ -64,7 +64,8 @@ void CastServiceSimple::StartInternal() {
gfx::Size initial_size(1280, 720);
window_.reset(new CastContentWindow);
- web_contents_ = window_->Create(initial_size, browser_context());
+ web_contents_ = window_->CreateWebContents(initial_size, browser_context());
+ window_->CreateWindowTree(initial_size, web_contents_.get());
web_contents_->GetController().LoadURL(GetStartupURL(),
content::Referrer(),

Powered by Google App Engine
This is Rietveld 408576698