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

Side by Side Diff: content/shell/app/shell_main_delegate.cc

Issue 2851453003: Revert of Rename kDisableGestureRequirementForMediaPlayback and make it a test-only flag. (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/shell/app/shell_main_delegate.h" 5 #include "content/shell/app/shell_main_delegate.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/cpu.h" 9 #include "base/cpu.h"
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 command_line.AppendSwitchASCII( 174 command_line.AppendSwitchASCII(
175 switches::kUseGL, 175 switches::kUseGL,
176 gl::GetGLImplementationName(gl::GetSoftwareGLImplementation())); 176 gl::GetGLImplementationName(gl::GetSoftwareGLImplementation()));
177 } 177 }
178 command_line.AppendSwitch(switches::kSkipGpuDataLoading); 178 command_line.AppendSwitch(switches::kSkipGpuDataLoading);
179 command_line.AppendSwitchASCII( 179 command_line.AppendSwitchASCII(
180 switches::kTouchEventFeatureDetection, 180 switches::kTouchEventFeatureDetection,
181 switches::kTouchEventFeatureDetectionEnabled); 181 switches::kTouchEventFeatureDetectionEnabled);
182 if (!command_line.HasSwitch(switches::kForceDeviceScaleFactor)) 182 if (!command_line.HasSwitch(switches::kForceDeviceScaleFactor))
183 command_line.AppendSwitchASCII(switches::kForceDeviceScaleFactor, "1.0"); 183 command_line.AppendSwitchASCII(switches::kForceDeviceScaleFactor, "1.0");
184 command_line.AppendSwitch(switches::kIgnoreAutoplayRestrictionsForTests); 184 command_line.AppendSwitch(
185 switches::kDisableGestureRequirementForMediaPlayback);
185 186
186 if (!command_line.HasSwitch(switches::kStableReleaseMode)) { 187 if (!command_line.HasSwitch(switches::kStableReleaseMode)) {
187 command_line.AppendSwitch( 188 command_line.AppendSwitch(
188 switches::kEnableExperimentalWebPlatformFeatures); 189 switches::kEnableExperimentalWebPlatformFeatures);
189 } 190 }
190 191
191 if (!command_line.HasSwitch(switches::kEnableThreadedCompositing)) { 192 if (!command_line.HasSwitch(switches::kEnableThreadedCompositing)) {
192 command_line.AppendSwitch(switches::kDisableThreadedCompositing); 193 command_line.AppendSwitch(switches::kDisableThreadedCompositing);
193 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); 194 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation);
194 } 195 }
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 370
370 return renderer_client_.get(); 371 return renderer_client_.get();
371 } 372 }
372 373
373 ContentUtilityClient* ShellMainDelegate::CreateContentUtilityClient() { 374 ContentUtilityClient* ShellMainDelegate::CreateContentUtilityClient() {
374 utility_client_.reset(new ShellContentUtilityClient); 375 utility_client_.reset(new ShellContentUtilityClient);
375 return utility_client_.get(); 376 return utility_client_.get();
376 } 377 }
377 378
378 } // namespace content 379 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/test/gpu/gpu_tests/webgl_conformance_integration_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698