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

Side by Side Diff: chromecast/browser/cast_content_browser_client.cc

Issue 2339873002: Replace hide-scrollbars flag with a web setting. (Closed)
Patch Set: check for presence of settings using DCHECK + sync. Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromecast/browser/cast_content_browser_client.h" 5 #include "chromecast/browser/cast_content_browser_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 prefs->allow_scripts_to_close_windows = true; 285 prefs->allow_scripts_to_close_windows = true;
286 // TODO(lcwu): http://crbug.com/391089. This pref is set to true by default 286 // TODO(lcwu): http://crbug.com/391089. This pref is set to true by default
287 // because some content providers such as YouTube use plain http requests 287 // because some content providers such as YouTube use plain http requests
288 // to retrieve media data chunks while running in a https page. This pref 288 // to retrieve media data chunks while running in a https page. This pref
289 // should be disabled once all the content providers are no longer doing that. 289 // should be disabled once all the content providers are no longer doing that.
290 prefs->allow_running_insecure_content = true; 290 prefs->allow_running_insecure_content = true;
291 291
292 // Enable 5% margins for WebVTT cues to keep within title-safe area 292 // Enable 5% margins for WebVTT cues to keep within title-safe area
293 prefs->text_track_margin_percentage = 5; 293 prefs->text_track_margin_percentage = 5;
294 294
295 prefs->hide_scrollbars = true;
296
295 #if defined(OS_ANDROID) 297 #if defined(OS_ANDROID)
296 // Enable the television style for viewport so that all cast apps have a 298 // Enable the television style for viewport so that all cast apps have a
297 // 1280px wide layout viewport by default. 299 // 1280px wide layout viewport by default.
298 DCHECK(prefs->viewport_enabled); 300 DCHECK(prefs->viewport_enabled);
299 DCHECK(prefs->viewport_meta_enabled); 301 DCHECK(prefs->viewport_meta_enabled);
300 prefs->viewport_style = content::ViewportStyle::TELEVISION; 302 prefs->viewport_style = content::ViewportStyle::TELEVISION;
301 #endif // defined(OS_ANDROID) 303 #endif // defined(OS_ANDROID)
302 } 304 }
303 305
304 void CastContentBrowserClient::ResourceDispatcherHostCreated() { 306 void CastContentBrowserClient::ResourceDispatcherHostCreated() {
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 process_type, dumps_path, false /* upload */); 533 process_type, dumps_path, false /* upload */);
532 // StartUploaderThread() even though upload is diferred. 534 // StartUploaderThread() even though upload is diferred.
533 // Breakpad-related memory is freed in the uploader thread. 535 // Breakpad-related memory is freed in the uploader thread.
534 crash_handler->StartUploaderThread(); 536 crash_handler->StartUploaderThread();
535 return crash_handler; 537 return crash_handler;
536 } 538 }
537 #endif // !defined(OS_ANDROID) 539 #endif // !defined(OS_ANDROID)
538 540
539 } // namespace shell 541 } // namespace shell
540 } // namespace chromecast 542 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698