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

Unified Diff: ui/aura/bench/bench_main.cc

Issue 819223002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 | « ui/app_list/views/apps_grid_view_unittest.cc ('k') | ui/aura/demo/demo_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/bench/bench_main.cc
diff --git a/ui/aura/bench/bench_main.cc b/ui/aura/bench/bench_main.cc
index ebf3131bdf5df04b0cacbf5a8e421779374c2e37..1e858e4b704213400e6f9e33db761a7b48e8019a 100644
--- a/ui/aura/bench/bench_main.cc
+++ b/ui/aura/bench/bench_main.cc
@@ -158,7 +158,7 @@ class WebGLBench : public BenchCompositorObserver {
compositor_(compositor),
fbo_(0),
do_draw_(true) {
- CommandLine* command_line = CommandLine::ForCurrentProcess();
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
do_draw_ = !command_line->HasSwitch("disable-draw");
std::string webgl_size = command_line->GetSwitchValueASCII("webgl-size");
@@ -263,7 +263,7 @@ class SoftwareScrollBench : public BenchCompositorObserver {
compositor_(compositor) {
compositor->AddObserver(this);
layer_->set_draw(
- !CommandLine::ForCurrentProcess()->HasSwitch("disable-draw"));
+ !base::CommandLine::ForCurrentProcess()->HasSwitch("disable-draw"));
}
~SoftwareScrollBench() override { compositor_->RemoveObserver(this); }
@@ -284,7 +284,7 @@ class SoftwareScrollBench : public BenchCompositorObserver {
} // namespace
int main(int argc, char** argv) {
- CommandLine::Init(argc, argv);
+ base::CommandLine::Init(argc, argv);
base::AtExitManager exit_manager;
@@ -329,7 +329,7 @@ int main(int argc, char** argv) {
Layer content_layer(ui::LAYER_NOT_DRAWN);
- CommandLine* command_line = CommandLine::ForCurrentProcess();
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
bool force = command_line->HasSwitch("force-render-surface");
content_layer.SetForceRenderSurface(force);
gfx::Rect bounds(window.bounds().size());
« no previous file with comments | « ui/app_list/views/apps_grid_view_unittest.cc ('k') | ui/aura/demo/demo_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698