Make callers of CommandLine use it via the base:: namespace.
Covers testing/, tools/, ui/, and win8/.
BUG=422426
TEST=none
[email protected]
Review URL: https://codereview.chromium.org/819223002
Cr-Commit-Position: refs/heads/master@{#309538}
diff --git a/ui/ozone/platform_selection.cc b/ui/ozone/platform_selection.cc
index 823e2bd..1b49a08 100644
--- a/ui/ozone/platform_selection.cc
+++ b/ui/ozone/platform_selection.cc
@@ -16,10 +16,11 @@
// 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);
}