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

Unified Diff: ui/ozone/demo/ozone_demo.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/ozone/common/display_util.cc ('k') | ui/ozone/platform/dri/gbm_surface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/demo/ozone_demo.cc
diff --git a/ui/ozone/demo/ozone_demo.cc b/ui/ozone/demo/ozone_demo.cc
index b096d179a388218a218743f3560a368835f104d0..2f6df6814249fca3ac7860a182ee6eeb6d085da5 100644
--- a/ui/ozone/demo/ozone_demo.cc
+++ b/ui/ozone/demo/ozone_demo.cc
@@ -33,7 +33,7 @@ class DemoWindow : public ui::PlatformWindowDelegate {
DemoWindow() : widget_(gfx::kNullAcceleratedWidget) {
int width = kTestWindowWidth;
int height = kTestWindowHeight;
- sscanf(CommandLine::ForCurrentProcess()
+ sscanf(base::CommandLine::ForCurrentProcess()
->GetSwitchValueASCII(kWindowSize)
.c_str(),
"%dx%d", &width, &height);
@@ -53,9 +53,9 @@ class DemoWindow : public ui::PlatformWindowDelegate {
gfx::Size GetSize() { return platform_window_->GetBounds().size(); }
void Start() {
- if (!CommandLine::ForCurrentProcess()->HasSwitch(kDisableGpu) &&
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableGpu) &&
gfx::GLSurface::InitializeOneOff() && StartInProcessGpu()) {
- if (CommandLine::ForCurrentProcess()->HasSwitch(
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kOzoneUseSurfaceless)) {
renderer_.reset(
new ui::SurfacelessGlRenderer(GetAcceleratedWidget(), GetSize()));
@@ -119,7 +119,7 @@ class DemoWindow : public ui::PlatformWindowDelegate {
};
int main(int argc, char** argv) {
- CommandLine::Init(argc, argv);
+ base::CommandLine::Init(argc, argv);
base::AtExitManager exit_manager;
// Build UI thread message loop. This is used by platform
« no previous file with comments | « ui/ozone/common/display_util.cc ('k') | ui/ozone/platform/dri/gbm_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698