Chromium Code Reviews

Unified Diff: chromecast/browser/cast_content_browser_client.cc

Issue 837573003: Chromecast: adds disable_display define for headless builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromecast/chromecast.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_content_browser_client.cc
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc
index 677d900b173fb908cc3873cf41f0a11a088f5115..42bfb33deb9cde5e8725622c67c60596a46cd646 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -129,6 +129,10 @@ void CastContentBrowserClient::OverrideWebkitPrefs(
// to retrieve media data chunks while running in a https page. This pref
// should be disabled once all the content providers are no longer doing that.
prefs->allow_running_insecure_content = true;
+#if defined(DISABLE_DISPLAY)
+ prefs->images_enabled = false;
+ prefs->loads_images_automatically = false;
+#endif // defined(DISABLE_DISPLAY)
}
std::string CastContentBrowserClient::GetApplicationLocale() {
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromecast/chromecast.gyp » ('j') | no next file with comments »

Powered by Google App Engine