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 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 }; | 86 }; |
87 | 87 |
88 DefaultCommandLineSwitch g_default_switches[] = { | 88 DefaultCommandLineSwitch g_default_switches[] = { |
89 #if defined(OS_ANDROID) | 89 #if defined(OS_ANDROID) |
90 { switches::kMediaDrmEnableNonCompositing, ""}, | 90 { switches::kMediaDrmEnableNonCompositing, ""}, |
91 { switches::kEnableOverlayFullscreenVideo, ""}, | 91 { switches::kEnableOverlayFullscreenVideo, ""}, |
92 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, | 92 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, |
93 { switches::kDisableGestureRequirementForMediaPlayback, ""}, | 93 { switches::kDisableGestureRequirementForMediaPlayback, ""}, |
94 { switches::kForceUseOverlayEmbeddedVideo, ""}, | 94 { switches::kForceUseOverlayEmbeddedVideo, ""}, |
95 #endif | 95 #endif |
96 { switches::kDisablePlugins, "" }, | |
97 // Always enable HTMLMediaElement logs. | 96 // Always enable HTMLMediaElement logs. |
98 { switches::kBlinkPlatformLogChannels, "Media"}, | 97 { switches::kBlinkPlatformLogChannels, "Media"}, |
99 #if defined(DISABLE_DISPLAY) | 98 #if defined(DISABLE_DISPLAY) |
100 { switches::kDisableGpu, "" }, | 99 { switches::kDisableGpu, "" }, |
101 #endif | 100 #endif |
102 #if defined(OS_LINUX) && defined(ARCH_CPU_X86_FAMILY) | 101 #if defined(OS_LINUX) && defined(ARCH_CPU_X86_FAMILY) |
103 // This is needed for now to enable the egltest Ozone platform to work with | 102 // This is needed for now to enable the egltest Ozone platform to work with |
104 // current Linux/NVidia OpenGL drivers. | 103 // current Linux/NVidia OpenGL drivers. |
105 { switches::kIgnoreGpuBlacklist, ""}, | 104 { switches::kIgnoreGpuBlacklist, ""}, |
106 // TODO(gusfernandez): This is needed to fix a bug with | 105 // TODO(gusfernandez): This is needed to fix a bug with |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 } | 242 } |
244 | 243 |
245 void CastBrowserMainParts::PostMainMessageLoopRun() { | 244 void CastBrowserMainParts::PostMainMessageLoopRun() { |
246 cast_browser_process_->cast_service()->Finalize(); | 245 cast_browser_process_->cast_service()->Finalize(); |
247 cast_browser_process_->metrics_service_client()->Finalize(); | 246 cast_browser_process_->metrics_service_client()->Finalize(); |
248 cast_browser_process_.reset(); | 247 cast_browser_process_.reset(); |
249 } | 248 } |
250 | 249 |
251 } // namespace shell | 250 } // namespace shell |
252 } // namespace chromecast | 251 } // namespace chromecast |
OLD | NEW |