| 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 <signal.h> | 7 #include <signal.h> |
| 8 #include <sys/prctl.h> | 8 #include <sys/prctl.h> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 namespace shell { | 88 namespace shell { |
| 89 | 89 |
| 90 namespace { | 90 namespace { |
| 91 | 91 |
| 92 struct DefaultCommandLineSwitch { | 92 struct DefaultCommandLineSwitch { |
| 93 const char* const switch_name; | 93 const char* const switch_name; |
| 94 const char* const switch_value; | 94 const char* const switch_value; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 DefaultCommandLineSwitch g_default_switches[] = { | 97 DefaultCommandLineSwitch g_default_switches[] = { |
| 98 // TODO(ddorwin): Develop a permanent solution. See http://crbug.com/394926. |
| 99 // For now, disable unprefixed EME because the video behavior not be |
| 100 // consistent with other clients. |
| 101 { switches::kDisableEncryptedMedia, ""}, |
| 98 #if defined(OS_ANDROID) | 102 #if defined(OS_ANDROID) |
| 99 { switches::kMediaDrmEnableNonCompositing, ""}, | 103 { switches::kMediaDrmEnableNonCompositing, ""}, |
| 100 { switches::kEnableOverlayFullscreenVideo, ""}, | 104 { switches::kEnableOverlayFullscreenVideo, ""}, |
| 101 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, | 105 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, |
| 102 { switches::kDisableGestureRequirementForMediaPlayback, ""}, | 106 { switches::kDisableGestureRequirementForMediaPlayback, ""}, |
| 103 { switches::kForceUseOverlayEmbeddedVideo, ""}, | 107 { switches::kForceUseOverlayEmbeddedVideo, ""}, |
| 104 #endif | 108 #endif |
| 105 // Always enable HTMLMediaElement logs. | 109 // Always enable HTMLMediaElement logs. |
| 106 { switches::kBlinkPlatformLogChannels, "Media"}, | 110 { switches::kBlinkPlatformLogChannels, "Media"}, |
| 107 #if defined(DISABLE_DISPLAY) | 111 #if defined(DISABLE_DISPLAY) |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 } | 262 } |
| 259 | 263 |
| 260 void CastBrowserMainParts::PostMainMessageLoopRun() { | 264 void CastBrowserMainParts::PostMainMessageLoopRun() { |
| 261 cast_browser_process_->cast_service()->Finalize(); | 265 cast_browser_process_->cast_service()->Finalize(); |
| 262 cast_browser_process_->metrics_service_client()->Finalize(); | 266 cast_browser_process_->metrics_service_client()->Finalize(); |
| 263 cast_browser_process_.reset(); | 267 cast_browser_process_.reset(); |
| 264 } | 268 } |
| 265 | 269 |
| 266 } // namespace shell | 270 } // namespace shell |
| 267 } // namespace chromecast | 271 } // namespace chromecast |
| OLD | NEW |