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

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

Issue 17447011: Shuffle media-related WebMimeRegistry code from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // painting is enabled. See http://crbug.com/250777 135 // painting is enabled. See http://crbug.com/250777
136 command_line.AppendSwitch(cc::switches::kDisableImplSidePainting); 136 command_line.AppendSwitch(cc::switches::kDisableImplSidePainting);
137 #endif 137 #endif
138 138
139 if (!command_line.HasSwitch(switches::kEnableThreadedCompositing)) 139 if (!command_line.HasSwitch(switches::kEnableThreadedCompositing))
140 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); 140 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation);
141 if (command_line.HasSwitch(switches::kEnableSoftwareCompositing)) 141 if (command_line.HasSwitch(switches::kEnableSoftwareCompositing))
142 command_line.AppendSwitch(switches::kEnableSoftwareCompositingGLAdapter); 142 command_line.AppendSwitch(switches::kEnableSoftwareCompositingGLAdapter);
143 143
144 net::CookieMonster::EnableFileScheme(); 144 net::CookieMonster::EnableFileScheme();
145
146 // Unless/until WebM files are added to the media layout tests, we need to
147 // avoid removing MP4/H264/AAC so that layout tests can run on Android.
148 #if !defined(OS_ANDROID)
149 net::RemoveProprietaryMediaTypesAndCodecsForTests();
mmenke 2013/06/21 19:40:58 If USE_PROPRIETARY_CODECS is true, should we still
scherkus (not reviewing) 2013/06/21 19:44:29 yes, that's especially when we want to do it! othe
mmenke 2013/06/21 19:47:39 Hmm...Then why did the old code have the "!defined
scherkus (not reviewing) 2013/06/21 19:56:09 I suspect it's because before this code was added
150 #endif
151
145 if (!WebKitTestPlatformInitialize()) { 152 if (!WebKitTestPlatformInitialize()) {
146 if (exit_code) 153 if (exit_code)
147 *exit_code = 1; 154 *exit_code = 1;
148 return true; 155 return true;
149 } 156 }
150 } 157 }
151 SetContentClient(&content_client_); 158 SetContentClient(&content_client_);
152 return false; 159 return false;
153 } 160 }
154 161
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 browser_client_.reset(new ShellContentBrowserClient); 217 browser_client_.reset(new ShellContentBrowserClient);
211 return browser_client_.get(); 218 return browser_client_.get();
212 } 219 }
213 220
214 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { 221 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() {
215 renderer_client_.reset(new ShellContentRendererClient); 222 renderer_client_.reset(new ShellContentRendererClient);
216 return renderer_client_.get(); 223 return renderer_client_.get();
217 } 224 }
218 225
219 } // namespace content 226 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | content/shell/renderer/shell_content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698