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

Unified Diff: content/gpu/gpu_main.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/gpu/gpu_child_thread.cc ('k') | content/plugin/plugin_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 0acc5bb65ed213a682ab714c935fe2cf34a8a5c3..378f07cb255c282c07944caf9fc2b270e17a5eb9 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -69,8 +69,8 @@ namespace content {
namespace {
void GetGpuInfoFromCommandLine(gpu::GPUInfo& gpu_info,
- const CommandLine& command_line);
-bool WarmUpSandbox(const CommandLine& command_line);
+ const base::CommandLine& command_line);
+bool WarmUpSandbox(const base::CommandLine& command_line);
#if !defined(OS_MACOSX)
bool CollectGraphicsInfo(gpu::GPUInfo& gpu_info);
@@ -108,7 +108,7 @@ int GpuMain(const MainFunctionParams& parameters) {
base::debug::TraceLog::GetInstance()->SetProcessSortIndex(
kTraceEventGpuProcessSortIndex);
- const CommandLine& command_line = parameters.command_line;
+ const base::CommandLine& command_line = parameters.command_line;
if (command_line.HasSwitch(switches::kGpuStartupDialog)) {
ChildProcess::WaitForDebugger("Gpu");
}
@@ -277,7 +277,7 @@ int GpuMain(const MainFunctionParams& parameters) {
// on systems where vendor_id/device_id aren't available.
if (!command_line.HasSwitch(switches::kDisableGpuDriverBugWorkarounds)) {
gpu::ApplyGpuDriverBugWorkarounds(
- gpu_info, const_cast<CommandLine*>(&command_line));
+ gpu_info, const_cast<base::CommandLine*>(&command_line));
}
#endif
@@ -372,7 +372,7 @@ int GpuMain(const MainFunctionParams& parameters) {
namespace {
void GetGpuInfoFromCommandLine(gpu::GPUInfo& gpu_info,
- const CommandLine& command_line) {
+ const base::CommandLine& command_line) {
DCHECK(command_line.HasSwitch(switches::kGpuVendorID) &&
command_line.HasSwitch(switches::kGpuDeviceID) &&
command_line.HasSwitch(switches::kGpuDriverVersion));
@@ -391,7 +391,7 @@ void GetGpuInfoFromCommandLine(gpu::GPUInfo& gpu_info,
GetContentClient()->SetGpuInfo(gpu_info);
}
-bool WarmUpSandbox(const CommandLine& command_line) {
+bool WarmUpSandbox(const base::CommandLine& command_line) {
{
TRACE_EVENT0("gpu", "Warm up rand");
// Warm up the random subsystem, which needs to be done pre-sandbox on all
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/plugin/plugin_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698