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

Unified Diff: tools/gn/gn_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 | « tools/gn/function_exec_script.cc ('k') | tools/gn/ninja_build_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/gn_main.cc
diff --git a/tools/gn/gn_main.cc b/tools/gn/gn_main.cc
index 6a409f9d509f0051a3110f9453b5044a818869c7..50d55e72a7239542a924eaf8c878d0b9f211f2e8 100644
--- a/tools/gn/gn_main.cc
+++ b/tools/gn/gn_main.cc
@@ -21,8 +21,8 @@
namespace {
-std::vector<std::string> GetArgs(const CommandLine& cmdline) {
- CommandLine::StringVector in_args = cmdline.GetArgs();
+std::vector<std::string> GetArgs(const base::CommandLine& cmdline) {
+ base::CommandLine::StringVector in_args = cmdline.GetArgs();
#if defined(OS_WIN)
std::vector<std::string> out_args;
for (const auto& arg : in_args)
@@ -38,11 +38,11 @@ std::vector<std::string> GetArgs(const CommandLine& cmdline) {
int main(int argc, char** argv) {
base::AtExitManager at_exit;
#if defined(OS_WIN)
- CommandLine::set_slash_is_not_a_switch();
+ base::CommandLine::set_slash_is_not_a_switch();
#endif
- CommandLine::Init(argc, argv);
+ base::CommandLine::Init(argc, argv);
- const CommandLine& cmdline = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& cmdline = *base::CommandLine::ForCurrentProcess();
std::vector<std::string> args = GetArgs(cmdline);
std::string command;
« no previous file with comments | « tools/gn/function_exec_script.cc ('k') | tools/gn/ninja_build_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698