Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 936653004: Disable unprefixed EME when using "--mediadrm-enable-non-compositing". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_andorid-wv
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698