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

Unified Diff: ui/ozone/platform_selection.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/platform/test/ozone_platform_test.cc ('k') | ui/views/controls/textfield/textfield_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform_selection.cc
diff --git a/ui/ozone/platform_selection.cc b/ui/ozone/platform_selection.cc
index 823e2bd97ed6a230b5101748e67d4e801554ec4d..1b49a08af70dc686c64bfe9bb8782bb3d6dfe434 100644
--- a/ui/ozone/platform_selection.cc
+++ b/ui/ozone/platform_selection.cc
@@ -16,10 +16,11 @@ namespace {
// Returns the name of the platform to use (value of --ozone-platform flag).
std::string GetPlatformName() {
// The first platform is the default.
- if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kOzonePlatform) &&
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kOzonePlatform) &&
kPlatformCount > 0)
return kPlatformNames[0];
- return CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ return base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kOzonePlatform);
}
« no previous file with comments | « ui/ozone/platform/test/ozone_platform_test.cc ('k') | ui/views/controls/textfield/textfield_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698