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

Unified Diff: chromecast/browser/service/cast_service_simple.cc

Issue 1972433002: [Chromecast] Handle device scale factor correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test compile error Created 4 years, 7 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: 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 95a497f892f0d97e73524f95563a2fc7796622ff..25ebc50a4aeb0e60ebf4742f35d29699ffd7fdae 100644
--- a/chromecast/browser/service/cast_service_simple.cc
+++ b/chromecast/browser/service/cast_service_simple.cc
@@ -51,12 +51,9 @@ void CastServiceSimple::FinalizeInternal() {
}
void CastServiceSimple::StartInternal() {
- // This is the simple version that hard-codes the size.
- gfx::Size initial_size(1280, 720);
-
window_.reset(new CastContentWindow);
- web_contents_ = window_->CreateWebContents(initial_size, browser_context());
- window_->CreateWindowTree(initial_size, web_contents_.get());
+ web_contents_ = window_->CreateWebContents(browser_context());
+ window_->CreateWindowTree(web_contents_.get());
web_contents_->GetController().LoadURL(startup_url_, content::Referrer(),
ui::PAGE_TRANSITION_TYPED,
« no previous file with comments | « chromecast/browser/cast_content_window.cc ('k') | chromecast/browser/test/chromecast_browser_test_helper_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698