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

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

Issue 1240543003: Remove NPAPI command line flags entirely. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review comments Created 5 years, 5 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
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/cpu.h" 9 #include "base/cpu.h"
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(cc::switches::kEnablePropertyTreeVerification); 198 command_line.AppendSwitch(cc::switches::kEnablePropertyTreeVerification);
199 199
200 command_line.AppendSwitch(switches::kEnablePreciseMemoryInfo); 200 command_line.AppendSwitch(switches::kEnablePreciseMemoryInfo);
201 201
202 command_line.AppendSwitchASCII(switches::kHostResolverRules, 202 command_line.AppendSwitchASCII(switches::kHostResolverRules,
203 "MAP *.test 127.0.0.1"); 203 "MAP *.test 127.0.0.1");
204 204
205 // TODO(wfh): crbug.com/295137 Remove this when NPAPI is gone.
206 command_line.AppendSwitch(switches::kEnableNpapiForTesting);
207
208 // Unless/until WebM files are added to the media layout tests, we need to 205 // Unless/until WebM files are added to the media layout tests, we need to
209 // avoid removing MP4/H264/AAC so that layout tests can run on Android. 206 // avoid removing MP4/H264/AAC so that layout tests can run on Android.
210 #if !defined(OS_ANDROID) 207 #if !defined(OS_ANDROID)
211 media::RemoveProprietaryMediaTypesAndCodecsForTests(); 208 media::RemoveProprietaryMediaTypesAndCodecsForTests();
212 #endif 209 #endif
213 210
214 if (!BlinkTestPlatformInitialize()) { 211 if (!BlinkTestPlatformInitialize()) {
215 if (exit_code) 212 if (exit_code)
216 *exit_code = 1; 213 *exit_code = 1;
217 return true; 214 return true;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 350
354 return renderer_client_.get(); 351 return renderer_client_.get();
355 } 352 }
356 353
357 ContentUtilityClient* ShellMainDelegate::CreateContentUtilityClient() { 354 ContentUtilityClient* ShellMainDelegate::CreateContentUtilityClient() {
358 utility_client_.reset(new ShellContentUtilityClient); 355 utility_client_.reset(new ShellContentUtilityClient);
359 return utility_client_.get(); 356 return utility_client_.get();
360 } 357 }
361 358
362 } // namespace content 359 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/shell/browser/shell_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698