| 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/files/file.h" | 9 #include "base/files/file.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 command_line.AppendSwitch(switches::kDisableThreadedCompositing); | 157 command_line.AppendSwitch(switches::kDisableThreadedCompositing); |
| 158 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); | 158 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); |
| 159 } | 159 } |
| 160 | 160 |
| 161 command_line.AppendSwitch(switches::kEnableInbandTextTracks); | 161 command_line.AppendSwitch(switches::kEnableInbandTextTracks); |
| 162 command_line.AppendSwitch(switches::kMuteAudio); | 162 command_line.AppendSwitch(switches::kMuteAudio); |
| 163 | 163 |
| 164 #if defined(USE_AURA) || defined(OS_ANDROID) | 164 #if defined(USE_AURA) || defined(OS_ANDROID) |
| 165 // TODO: crbug.com/311404 Make layout tests work w/ delegated renderer. | 165 // TODO: crbug.com/311404 Make layout tests work w/ delegated renderer. |
| 166 command_line.AppendSwitch(switches::kDisableDelegatedRenderer); | 166 command_line.AppendSwitch(switches::kDisableDelegatedRenderer); |
| 167 command_line.AppendSwitch(cc::switches::kCompositeToMailbox); |
| 167 #endif | 168 #endif |
| 168 | 169 |
| 169 command_line.AppendSwitch(switches::kEnableFileCookies); | 170 command_line.AppendSwitch(switches::kEnableFileCookies); |
| 170 | 171 |
| 171 // Unless/until WebM files are added to the media layout tests, we need to | 172 // Unless/until WebM files are added to the media layout tests, we need to |
| 172 // avoid removing MP4/H264/AAC so that layout tests can run on Android. | 173 // avoid removing MP4/H264/AAC so that layout tests can run on Android. |
| 173 #if !defined(OS_ANDROID) | 174 #if !defined(OS_ANDROID) |
| 174 net::RemoveProprietaryMediaTypesAndCodecsForTests(); | 175 net::RemoveProprietaryMediaTypesAndCodecsForTests(); |
| 175 #endif | 176 #endif |
| 176 | 177 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 browser_client_.reset(new ShellContentBrowserClient); | 286 browser_client_.reset(new ShellContentBrowserClient); |
| 286 return browser_client_.get(); | 287 return browser_client_.get(); |
| 287 } | 288 } |
| 288 | 289 |
| 289 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { | 290 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { |
| 290 renderer_client_.reset(new ShellContentRendererClient); | 291 renderer_client_.reset(new ShellContentRendererClient); |
| 291 return renderer_client_.get(); | 292 return renderer_client_.get(); |
| 292 } | 293 } |
| 293 | 294 |
| 294 } // namespace content | 295 } // namespace content |
| OLD | NEW |