| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 DefaultCommandLineSwitch g_default_switches[] = { | 47 DefaultCommandLineSwitch g_default_switches[] = { |
| 48 #if defined(OS_ANDROID) | 48 #if defined(OS_ANDROID) |
| 49 { switches::kMediaDrmEnableNonCompositing, ""}, | 49 { switches::kMediaDrmEnableNonCompositing, ""}, |
| 50 { switches::kEnableOverlayFullscreenVideo, ""}, | 50 { switches::kEnableOverlayFullscreenVideo, ""}, |
| 51 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, | 51 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, |
| 52 { switches::kDisableGestureRequirementForMediaPlayback, ""}, | 52 { switches::kDisableGestureRequirementForMediaPlayback, ""}, |
| 53 { switches::kForceUseOverlayEmbeddedVideo, ""}, | 53 { switches::kForceUseOverlayEmbeddedVideo, ""}, |
| 54 #endif | 54 #endif |
| 55 { switches::kDisableApplicationCache, "" }, | |
| 56 { switches::kDisablePlugins, "" }, | 55 { switches::kDisablePlugins, "" }, |
| 57 // Always enable HTMLMediaElement logs. | 56 // Always enable HTMLMediaElement logs. |
| 58 { switches::kBlinkPlatformLogChannels, "Media"}, | 57 { switches::kBlinkPlatformLogChannels, "Media"}, |
| 59 #if defined(OS_LINUX) && defined(ARCH_CPU_X86_FAMILY) | 58 #if defined(OS_LINUX) && defined(ARCH_CPU_X86_FAMILY) |
| 60 // This is needed for now to enable the egltest Ozone platform to work with | 59 // This is needed for now to enable the egltest Ozone platform to work with |
| 61 // current Linux/NVidia OpenGL drivers. | 60 // current Linux/NVidia OpenGL drivers. |
| 62 { switches::kIgnoreGpuBlacklist, ""}, | 61 { switches::kIgnoreGpuBlacklist, ""}, |
| 63 // TODO(gusfernandez): This is needed to fix a bug with | 62 // TODO(gusfernandez): This is needed to fix a bug with |
| 64 // glPostSubBufferCHROMIUM (crbug.com/429200) | 63 // glPostSubBufferCHROMIUM (crbug.com/429200) |
| 65 { cc::switches::kUIDisablePartialSwap, ""}, | 64 { cc::switches::kUIDisablePartialSwap, ""}, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 return true; | 189 return true; |
| 191 } | 190 } |
| 192 | 191 |
| 193 void CastBrowserMainParts::PostMainMessageLoopRun() { | 192 void CastBrowserMainParts::PostMainMessageLoopRun() { |
| 194 cast_browser_process_->cast_service()->Stop(); | 193 cast_browser_process_->cast_service()->Stop(); |
| 195 cast_browser_process_.reset(); | 194 cast_browser_process_.reset(); |
| 196 } | 195 } |
| 197 | 196 |
| 198 } // namespace shell | 197 } // namespace shell |
| 199 } // namespace chromecast | 198 } // namespace chromecast |
| OLD | NEW |