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

Unified Diff: content/shell/app/shell_main_delegate.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/app/shell_crash_reporter_client.cc ('k') | content/shell/app/shell_main_delegate_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/app/shell_main_delegate.cc
diff --git a/content/shell/app/shell_main_delegate.cc b/content/shell/app/shell_main_delegate.cc
index 914c2644d6c6c6caa26ceac5d860c75e6b1e175a..9e4ee62edc7e539f3681e9b04f8d970080ff1938 100644
--- a/content/shell/app/shell_main_delegate.cc
+++ b/content/shell/app/shell_main_delegate.cc
@@ -129,7 +129,7 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit_code) {
#endif // OS_MACOSX
InitLogging();
- CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ base::CommandLine& command_line = *base::CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kCheckLayoutTestSysDeps)) {
// If CheckLayoutSystemDeps succeeds, we don't exit early. Instead we
// continue and try to load the fonts in BlinkTestPlatformInitialize
@@ -209,10 +209,10 @@ void ShellMainDelegate::PreSandboxStartup() {
// cpu_brand info.
base::CPU cpu_info;
#endif
- if (CommandLine::ForCurrentProcess()->HasSwitch(
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableCrashReporter)) {
std::string process_type =
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kProcessType);
crash_reporter::SetCrashReporterClient(g_shell_crash_client.Pointer());
#if defined(OS_MACOSX)
@@ -255,7 +255,7 @@ int ShellMainDelegate::RunProcess(
#endif
browser_runner_.reset(BrowserMainRunner::Create());
- CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ base::CommandLine& command_line = *base::CommandLine::ForCurrentProcess();
return command_line.HasSwitch(switches::kDumpRenderTree) ||
command_line.HasSwitch(switches::kCheckLayoutTestSysDeps)
? LayoutTestBrowserMain(main_function_params, browser_runner_)
@@ -264,10 +264,10 @@ int ShellMainDelegate::RunProcess(
#if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
void ShellMainDelegate::ZygoteForked() {
- if (CommandLine::ForCurrentProcess()->HasSwitch(
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableCrashReporter)) {
std::string process_type =
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kProcessType);
breakpad::InitCrashReporter(process_type);
}
@@ -311,19 +311,19 @@ void ShellMainDelegate::InitializeResourceBundle() {
}
ContentBrowserClient* ShellMainDelegate::CreateContentBrowserClient() {
- browser_client_.reset(
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree) ?
- new LayoutTestContentBrowserClient :
- new ShellContentBrowserClient);
+ browser_client_.reset(base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDumpRenderTree)
+ ? new LayoutTestContentBrowserClient
+ : new ShellContentBrowserClient);
return browser_client_.get();
}
ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() {
- renderer_client_.reset(
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree) ?
- new LayoutTestContentRendererClient :
- new ShellContentRendererClient);
+ renderer_client_.reset(base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDumpRenderTree)
+ ? new LayoutTestContentRendererClient
+ : new ShellContentRendererClient);
return renderer_client_.get();
}
« no previous file with comments | « content/shell/app/shell_crash_reporter_client.cc ('k') | content/shell/app/shell_main_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698