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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 // TODO: crbug.com/311404 Make layout tests work w/ delegated renderer. | 194 // TODO: crbug.com/311404 Make layout tests work w/ delegated renderer. |
195 command_line.AppendSwitch(switches::kDisableDelegatedRenderer); | 195 command_line.AppendSwitch(switches::kDisableDelegatedRenderer); |
196 command_line.AppendSwitch(cc::switches::kCompositeToMailbox); | 196 command_line.AppendSwitch(cc::switches::kCompositeToMailbox); |
197 | 197 |
198 command_line.AppendSwitch(switches::kEnablePreciseMemoryInfo); | 198 command_line.AppendSwitch(switches::kEnablePreciseMemoryInfo); |
199 | 199 |
200 command_line.AppendSwitchASCII(switches::kHostResolverRules, | 200 command_line.AppendSwitchASCII(switches::kHostResolverRules, |
201 "MAP *.test 127.0.0.1"); | 201 "MAP *.test 127.0.0.1"); |
202 | 202 |
203 // TODO(wfh): crbug.com/295137 Remove this when NPAPI is gone. | |
204 command_line.AppendSwitch(switches::kEnableNpapiForTesting); | |
205 | |
206 // Unless/until WebM files are added to the media layout tests, we need to | 203 // Unless/until WebM files are added to the media layout tests, we need to |
207 // avoid removing MP4/H264/AAC so that layout tests can run on Android. | 204 // avoid removing MP4/H264/AAC so that layout tests can run on Android. |
208 #if !defined(OS_ANDROID) | 205 #if !defined(OS_ANDROID) |
209 media::RemoveProprietaryMediaTypesAndCodecsForTests(); | 206 media::RemoveProprietaryMediaTypesAndCodecsForTests(); |
210 #endif | 207 #endif |
211 | 208 |
212 if (!BlinkTestPlatformInitialize()) { | 209 if (!BlinkTestPlatformInitialize()) { |
213 if (exit_code) | 210 if (exit_code) |
214 *exit_code = 1; | 211 *exit_code = 1; |
215 return true; | 212 return true; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 348 |
352 return renderer_client_.get(); | 349 return renderer_client_.get(); |
353 } | 350 } |
354 | 351 |
355 ContentUtilityClient* ShellMainDelegate::CreateContentUtilityClient() { | 352 ContentUtilityClient* ShellMainDelegate::CreateContentUtilityClient() { |
356 utility_client_.reset(new ShellContentUtilityClient); | 353 utility_client_.reset(new ShellContentUtilityClient); |
357 return utility_client_.get(); | 354 return utility_client_.get(); |
358 } | 355 } |
359 | 356 |
360 } // namespace content | 357 } // namespace content |
OLD | NEW |