| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 94   const char* const switch_name; | 94   const char* const switch_name; | 
| 95   const char* const switch_value; | 95   const char* const switch_value; | 
| 96 }; | 96 }; | 
| 97 | 97 | 
| 98 DefaultCommandLineSwitch g_default_switches[] = { | 98 DefaultCommandLineSwitch g_default_switches[] = { | 
| 99   // TODO(ddorwin): Develop a permanent solution. See http://crbug.com/394926. | 99   // TODO(ddorwin): Develop a permanent solution. See http://crbug.com/394926. | 
| 100   // For now, disable unprefixed EME because the video behavior not be | 100   // For now, disable unprefixed EME because the video behavior not be | 
| 101   // consistent with other clients. | 101   // consistent with other clients. | 
| 102   { switches::kDisableEncryptedMedia, ""}, | 102   { switches::kDisableEncryptedMedia, ""}, | 
| 103 #if defined(OS_ANDROID) | 103 #if defined(OS_ANDROID) | 
|  | 104   // Disables Chromecast-specific WiFi-related features on ATV for now. | 
|  | 105   { switches::kNoWifi, "" }, | 
| 104   { switches::kMediaDrmEnableNonCompositing, ""}, | 106   { switches::kMediaDrmEnableNonCompositing, ""}, | 
| 105   { switches::kEnableOverlayFullscreenVideo, ""}, | 107   { switches::kEnableOverlayFullscreenVideo, ""}, | 
| 106   { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, | 108   { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, | 
| 107   { switches::kDisableGestureRequirementForMediaPlayback, ""}, | 109   { switches::kDisableGestureRequirementForMediaPlayback, ""}, | 
| 108   { switches::kForceUseOverlayEmbeddedVideo, ""}, | 110   { switches::kForceUseOverlayEmbeddedVideo, ""}, | 
| 109 #endif | 111 #endif | 
| 110   // Always enable HTMLMediaElement logs. | 112   // Always enable HTMLMediaElement logs. | 
| 111   { switches::kBlinkPlatformLogChannels, "Media"}, | 113   { switches::kBlinkPlatformLogChannels, "Media"}, | 
| 112 #if defined(DISABLE_DISPLAY) | 114 #if defined(DISABLE_DISPLAY) | 
| 113   { switches::kDisableGpu, "" }, | 115   { switches::kDisableGpu, "" }, | 
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 266 } | 268 } | 
| 267 | 269 | 
| 268 void CastBrowserMainParts::PostMainMessageLoopRun() { | 270 void CastBrowserMainParts::PostMainMessageLoopRun() { | 
| 269   cast_browser_process_->cast_service()->Finalize(); | 271   cast_browser_process_->cast_service()->Finalize(); | 
| 270   cast_browser_process_->metrics_service_client()->Finalize(); | 272   cast_browser_process_->metrics_service_client()->Finalize(); | 
| 271   cast_browser_process_.reset(); | 273   cast_browser_process_.reset(); | 
| 272 } | 274 } | 
| 273 | 275 | 
| 274 }  // namespace shell | 276 }  // namespace shell | 
| 275 }  // namespace chromecast | 277 }  // namespace chromecast | 
| OLD | NEW | 
|---|