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

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

Issue 1025933002: Convert force video overlay to preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 9 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 | « chromecast/browser/cast_browser_main_parts.cc ('k') | content/common/view_messages.h » ('j') | 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_content_browser_client.h" 5 #include "chromecast/browser/cast_content_browser_client.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base_switches.h" 9 #include "base/base_switches.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // controlled by GetBreakpadClient()->EnableBreakpadForProcess(), therefore 132 // controlled by GetBreakpadClient()->EnableBreakpadForProcess(), therefore
133 // it's ok to add switch to every process here. 133 // it's ok to add switch to every process here.
134 if (breakpad::IsCrashReporterEnabled()) { 134 if (breakpad::IsCrashReporterEnabled()) {
135 command_line->AppendSwitch(switches::kEnableCrashReporter); 135 command_line->AppendSwitch(switches::kEnableCrashReporter);
136 } 136 }
137 137
138 // Renderer process command-line 138 // Renderer process command-line
139 if (process_type == switches::kRendererProcess) { 139 if (process_type == switches::kRendererProcess) {
140 // Any browser command-line switches that should be propagated to 140 // Any browser command-line switches that should be propagated to
141 // the renderer go here. 141 // the renderer go here.
142 #if defined(OS_ANDROID)
143 command_line->AppendSwitch(switches::kForceUseOverlayEmbeddedVideo);
144 #endif // defined(OS_ANDROID)
145 142
146 if (browser_command_line->HasSwitch(switches::kEnableCmaMediaPipeline)) 143 if (browser_command_line->HasSwitch(switches::kEnableCmaMediaPipeline))
147 command_line->AppendSwitch(switches::kEnableCmaMediaPipeline); 144 command_line->AppendSwitch(switches::kEnableCmaMediaPipeline);
148 } 145 }
149 146
150 #if defined(OS_LINUX) 147 #if defined(OS_LINUX)
151 // Necessary for accelerated 2d canvas. By default on Linux, Chromium assumes 148 // Necessary for accelerated 2d canvas. By default on Linux, Chromium assumes
152 // GLES2 contexts can be lost to a power-save mode, which breaks GPU canvas 149 // GLES2 contexts can be lost to a power-save mode, which breaks GPU canvas
153 // apps. 150 // apps.
154 if (process_type == switches::kGpuProcess) { 151 if (process_type == switches::kGpuProcess) {
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 process_type, dumps_path, false /* upload */); 365 process_type, dumps_path, false /* upload */);
369 // StartUploaderThread() even though upload is diferred. 366 // StartUploaderThread() even though upload is diferred.
370 // Breakpad-related memory is freed in the uploader thread. 367 // Breakpad-related memory is freed in the uploader thread.
371 crash_handler->StartUploaderThread(); 368 crash_handler->StartUploaderThread();
372 return crash_handler; 369 return crash_handler;
373 } 370 }
374 #endif // !defined(OS_ANDROID) 371 #endif // !defined(OS_ANDROID)
375 372
376 } // namespace shell 373 } // namespace shell
377 } // namespace chromecast 374 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698