Chromium Code Reviews| 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 { switches::kNoWifi, "" }, | |
|
lcwu1
2015/02/23 21:48:50
It might make it clear to add a comment saying the
gunsch
2015/02/23 22:00:33
Done.
gunsch
2015/02/23 22:00:33
Done.
| |
| 104 { switches::kMediaDrmEnableNonCompositing, ""}, | 105 { switches::kMediaDrmEnableNonCompositing, ""}, |
| 105 { switches::kEnableOverlayFullscreenVideo, ""}, | 106 { switches::kEnableOverlayFullscreenVideo, ""}, |
| 106 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, | 107 { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, |
| 107 { switches::kDisableGestureRequirementForMediaPlayback, ""}, | 108 { switches::kDisableGestureRequirementForMediaPlayback, ""}, |
| 108 { switches::kForceUseOverlayEmbeddedVideo, ""}, | 109 { switches::kForceUseOverlayEmbeddedVideo, ""}, |
| 109 #endif | 110 #endif |
| 110 // Always enable HTMLMediaElement logs. | 111 // Always enable HTMLMediaElement logs. |
| 111 { switches::kBlinkPlatformLogChannels, "Media"}, | 112 { switches::kBlinkPlatformLogChannels, "Media"}, |
| 112 #if defined(DISABLE_DISPLAY) | 113 #if defined(DISABLE_DISPLAY) |
| 113 { switches::kDisableGpu, "" }, | 114 { switches::kDisableGpu, "" }, |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 266 } | 267 } |
| 267 | 268 |
| 268 void CastBrowserMainParts::PostMainMessageLoopRun() { | 269 void CastBrowserMainParts::PostMainMessageLoopRun() { |
| 269 cast_browser_process_->cast_service()->Finalize(); | 270 cast_browser_process_->cast_service()->Finalize(); |
| 270 cast_browser_process_->metrics_service_client()->Finalize(); | 271 cast_browser_process_->metrics_service_client()->Finalize(); |
| 271 cast_browser_process_.reset(); | 272 cast_browser_process_.reset(); |
| 272 } | 273 } |
| 273 | 274 |
| 274 } // namespace shell | 275 } // namespace shell |
| 275 } // namespace chromecast | 276 } // namespace chromecast |
| OLD | NEW |