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

Unified Diff: content/renderer/gpu/render_widget_compositor.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/renderer/gin_browsertest.cc ('k') | content/renderer/input/input_handler_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index 6162478446cae092a34348fb4856acced350a576..d66a8926c9e4c02882ee89773656567abb2f1b57 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -66,12 +66,11 @@ using blink::WebSize;
namespace content {
namespace {
-bool GetSwitchValueAsInt(
- const CommandLine& command_line,
- const std::string& switch_string,
- int min_value,
- int max_value,
- int* result) {
+bool GetSwitchValueAsInt(const base::CommandLine& command_line,
+ const std::string& switch_string,
+ int min_value,
+ int max_value,
+ int* result) {
std::string string_value = command_line.GetSwitchValueASCII(switch_string);
int int_value;
if (base::StringToInt(string_value, &int_value) &&
@@ -174,7 +173,7 @@ RenderWidgetCompositor::RenderWidgetCompositor(
compositor_deps_(compositor_deps),
send_v8_idle_notification_after_commit_(true),
weak_factory_(this) {
- CommandLine* cmd = CommandLine::ForCurrentProcess();
+ base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
if (cmd->HasSwitch(switches::kEnableV8IdleNotificationAfterCommit))
send_v8_idle_notification_after_commit_ = true;
@@ -183,7 +182,7 @@ RenderWidgetCompositor::RenderWidgetCompositor(
}
void RenderWidgetCompositor::Initialize() {
- CommandLine* cmd = CommandLine::ForCurrentProcess();
+ base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
cc::LayerTreeSettings settings;
« no previous file with comments | « content/renderer/gin_browsertest.cc ('k') | content/renderer/input/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698