OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |