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

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

Issue 65193003: Clear SingleProcess and InProcessGPU logic. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: WIP: diable kSingleProcess and kInProcessGPU in chrome multiple dll browser. Created 7 years, 1 month 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
« no previous file with comments | « content/public/common/content_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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_path.h" 9 #include "base/files/file_path.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 169 }
170 170
171 command_line.AppendSwitch(switches::kEnableInbandTextTracks); 171 command_line.AppendSwitch(switches::kEnableInbandTextTracks);
172 command_line.AppendSwitch(switches::kMuteAudio); 172 command_line.AppendSwitch(switches::kMuteAudio);
173 173
174 #if defined(USE_AURA) 174 #if defined(USE_AURA)
175 // TODO: crbug.com/311404 Make layout tests work w/ delegated renderer. 175 // TODO: crbug.com/311404 Make layout tests work w/ delegated renderer.
176 command_line.AppendSwitch(switches::kDisableDelegatedRenderer); 176 command_line.AppendSwitch(switches::kDisableDelegatedRenderer);
177 #endif 177 #endif
178 178
179 #if defined(CHROME_MULTIPLE_DLL_BROWSER)
180 if (command_line.HasSwitch(switches::kSingleProcess)) {
181 command_line.RemoveSwitch(switches::kSingleProcess);
182 LOG(ERROR) <<
183 "--single-process is not supported in chrome multiple dll browser.";
184 }
185 if (command_line.HasSwitch(switches::kInProcessGPU)) {
186 command_line.RemoveSwitch(switches::kInProcessGPU);
187 LOG(ERROR) <<
188 "--in-process-gpu is not supported in chrome multiple dll browser.";
189 }
190 #endif
dshwang 2013/11/11 13:50:47 How about this code? It looks good to me. :)
191
179 net::CookieMonster::EnableFileScheme(); 192 net::CookieMonster::EnableFileScheme();
180 193
181 // Unless/until WebM files are added to the media layout tests, we need to 194 // Unless/until WebM files are added to the media layout tests, we need to
182 // avoid removing MP4/H264/AAC so that layout tests can run on Android. 195 // avoid removing MP4/H264/AAC so that layout tests can run on Android.
183 #if !defined(OS_ANDROID) 196 #if !defined(OS_ANDROID)
184 net::RemoveProprietaryMediaTypesAndCodecsForTests(); 197 net::RemoveProprietaryMediaTypesAndCodecsForTests();
185 #endif 198 #endif
186 199
187 if (!WebKitTestPlatformInitialize()) { 200 if (!WebKitTestPlatformInitialize()) {
188 if (exit_code) 201 if (exit_code)
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 browser_client_.reset(new ShellContentBrowserClient); 304 browser_client_.reset(new ShellContentBrowserClient);
292 return browser_client_.get(); 305 return browser_client_.get();
293 } 306 }
294 307
295 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { 308 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() {
296 renderer_client_.reset(new ShellContentRendererClient); 309 renderer_client_.reset(new ShellContentRendererClient);
297 return renderer_client_.get(); 310 return renderer_client_.get();
298 } 311 }
299 312
300 } // namespace content 313 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698