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

Unified Diff: content/common/sandbox_linux/bpf_gpu_policy_linux.cc

Issue 456513002: Add base:: qualification to some CommandLine references in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: imerge Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/sandbox_init_win.cc ('k') | content/common/sandbox_linux/sandbox_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_linux/bpf_gpu_policy_linux.cc
diff --git a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
index c30c166a8f0adb2909b4b16c84209499f84e1f96..673e59df9dd63bf077b088bba0179bb6394d3a69 100644
--- a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
+++ b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
@@ -73,7 +73,8 @@ inline bool IsArchitectureArm() {
}
bool IsAcceleratedVideoEnabled() {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
bool accelerated_encode_enabled = false;
#if defined(OS_CHROMEOS)
accelerated_encode_enabled =
@@ -143,12 +144,13 @@ ResultExpr GpuBrokerProcessPolicy::EvaluateSyscall(int sysno) const {
}
void UpdateProcessTypeToGpuBroker() {
- CommandLine::StringVector exec = CommandLine::ForCurrentProcess()->GetArgs();
- CommandLine::Reset();
- CommandLine::Init(0, NULL);
- CommandLine::ForCurrentProcess()->InitFromArgv(exec);
- CommandLine::ForCurrentProcess()->AppendSwitchASCII(switches::kProcessType,
- "gpu-broker");
+ base::CommandLine::StringVector exec =
+ base::CommandLine::ForCurrentProcess()->GetArgs();
+ base::CommandLine::Reset();
+ base::CommandLine::Init(0, NULL);
+ base::CommandLine::ForCurrentProcess()->InitFromArgv(exec);
+ base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ switches::kProcessType, "gpu-broker");
// Update the process title. The argv was already cached by the call to
// SetProcessTitleFromCommandLine in content_main_runner.cc, so we can pass
« no previous file with comments | « content/common/sandbox_init_win.cc ('k') | content/common/sandbox_linux/sandbox_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698