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

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: fixes 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 net::RemoveProprietaryMediaTypesAndCodecsForTests();
146
145 if (!WebKitTestPlatformInitialize()) { 147 if (!WebKitTestPlatformInitialize()) {
146 if (exit_code) 148 if (exit_code)
147 *exit_code = 1; 149 *exit_code = 1;
148 return true; 150 return true;
149 } 151 }
150 } 152 }
151 SetContentClient(&content_client_); 153 SetContentClient(&content_client_);
152 return false; 154 return false;
153 } 155 }
154 156
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 browser_client_.reset(new ShellContentBrowserClient); 212 browser_client_.reset(new ShellContentBrowserClient);
211 return browser_client_.get(); 213 return browser_client_.get();
212 } 214 }
213 215
214 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { 216 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() {
215 renderer_client_.reset(new ShellContentRendererClient); 217 renderer_client_.reset(new ShellContentRendererClient);
216 return renderer_client_.get(); 218 return renderer_client_.get();
217 } 219 }
218 220
219 } // namespace content 221 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698