OLD | NEW |
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_browser_main_parts.h" | 5 #include "chromecast/browser/cast_browser_main_parts.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #if !defined(OS_ANDROID) | 8 #if !defined(OS_ANDROID) |
9 #include <signal.h> | 9 #include <signal.h> |
10 #include <sys/prctl.h> | 10 #include <sys/prctl.h> |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 struct DefaultCommandLineSwitch { | 160 struct DefaultCommandLineSwitch { |
161 const char* const switch_name; | 161 const char* const switch_name; |
162 const char* const switch_value; | 162 const char* const switch_value; |
163 }; | 163 }; |
164 | 164 |
165 DefaultCommandLineSwitch g_default_switches[] = { | 165 DefaultCommandLineSwitch g_default_switches[] = { |
166 #if defined(OS_ANDROID) | 166 #if defined(OS_ANDROID) |
167 // Disables Chromecast-specific WiFi-related features on ATV for now. | 167 // Disables Chromecast-specific WiFi-related features on ATV for now. |
168 { switches::kNoWifi, "" }, | 168 { switches::kNoWifi, "" }, |
169 { switches::kEnableOverlayFullscreenVideo, ""}, | |
170 { switches::kDisableGestureRequirementForMediaPlayback, ""}, | 169 { switches::kDisableGestureRequirementForMediaPlayback, ""}, |
171 #endif | 170 #endif |
172 // Always enable HTMLMediaElement logs. | 171 // Always enable HTMLMediaElement logs. |
173 { switches::kBlinkPlatformLogChannels, "Media"}, | 172 { switches::kBlinkPlatformLogChannels, "Media"}, |
174 #if defined(DISABLE_DISPLAY) | 173 #if defined(DISABLE_DISPLAY) |
175 { switches::kDisableGpu, "" }, | 174 { switches::kDisableGpu, "" }, |
176 #endif | 175 #endif |
177 #if defined(OS_LINUX) | 176 #if defined(OS_LINUX) |
178 #if defined(ARCH_CPU_X86_FAMILY) | 177 #if defined(ARCH_CPU_X86_FAMILY) |
179 // This is needed for now to enable the egltest Ozone platform to work with | 178 // This is needed for now to enable the egltest Ozone platform to work with |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 #endif | 398 #endif |
400 | 399 |
401 // Finalize CastMediaShlib on media thread to ensure it's not accessed | 400 // Finalize CastMediaShlib on media thread to ensure it's not accessed |
402 // after Finalize. | 401 // after Finalize. |
403 media::MediaMessageLoop::GetTaskRunner()->PostTask( | 402 media::MediaMessageLoop::GetTaskRunner()->PostTask( |
404 FROM_HERE, base::Bind(&media::CastMediaShlib::Finalize)); | 403 FROM_HERE, base::Bind(&media::CastMediaShlib::Finalize)); |
405 } | 404 } |
406 | 405 |
407 } // namespace shell | 406 } // namespace shell |
408 } // namespace chromecast | 407 } // namespace chromecast |
OLD | NEW |