diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-21 03:36:31 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-21 03:36:31 +0000 |
commit | 947446bd2c19777f7f20b9b14085dc31cdb73d1a (patch) | |
tree | a5a6965d00cd420035ccf80cf1498f7a2f1ca90a /base | |
parent | 1f6228c2bfc056e876cbfd5b585f6d07d8f7313c (diff) | |
download | chromium_src-947446bd2c19777f7f20b9b14085dc31cdb73d1a.zip chromium_src-947446bd2c19777f7f20b9b14085dc31cdb73d1a.tar.gz chromium_src-947446bd2c19777f7f20b9b14085dc31cdb73d1a.tar.bz2 |
Rename CommandLine::ARGUMENTS_ONLY to NO_PROGRAM.
ARGUMENTS_ONLY was misleading since CommandLine has methods for handling "switches" and "arguments", but that constructor still allows both.
BUG=none
TEST=still builds
Review URL: http://codereview.chromium.org/3935001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/command_line.cc | 4 | ||||
-rw-r--r-- | base/command_line.h | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/base/command_line.cc b/base/command_line.cc index 2fdc176..2e6021d 100644 --- a/base/command_line.cc +++ b/base/command_line.cc @@ -60,7 +60,7 @@ CommandLine::~CommandLine() { } #if defined(OS_WIN) -CommandLine::CommandLine(ArgumentsOnly args_only) { +CommandLine::CommandLine(NoProgram no_program) { } void CommandLine::ParseFromString(const std::wstring& command_line) { @@ -121,7 +121,7 @@ CommandLine::CommandLine(const FilePath& program) { } #elif defined(OS_POSIX) -CommandLine::CommandLine(ArgumentsOnly args_only) { +CommandLine::CommandLine(NoProgram no_program) { // Push an empty argument, because we always assume argv_[0] is a program. argv_.push_back(""); } diff --git a/base/command_line.h b/base/command_line.h index ec8714f..a5bdd1a 100644 --- a/base/command_line.h +++ b/base/command_line.h @@ -30,9 +30,10 @@ class InProcessBrowserTest; class CommandLine { public: - // A constructor for CommandLines that are used only to carry arguments. - enum ArgumentsOnly { ARGUMENTS_ONLY }; - explicit CommandLine(ArgumentsOnly args_only); + // A constructor for CommandLines that are used only to carry switches and + // arguments. + enum NoProgram { NO_PROGRAM }; + explicit CommandLine(NoProgram no_program); ~CommandLine(); #if defined(OS_WIN) |