diff options
Diffstat (limited to 'chromium/base/command_line.h')
-rw-r--r-- | chromium/base/command_line.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/base/command_line.h b/chromium/base/command_line.h index 1829e63e1b5..439921ed6e5 100644 --- a/chromium/base/command_line.h +++ b/chromium/base/command_line.h @@ -142,8 +142,11 @@ class BASE_EXPORT CommandLine { void SetProgram(const FilePath& program); // Returns true if this command line contains the given switch. - // (Switch names are case-insensitive). + // Switch names should only be lowercase. + // The second override provides an optimized version to avoid inlining the + // codegen for the string allocation. bool HasSwitch(const std::string& switch_string) const; + bool HasSwitch(const char switch_constant[]) const; // Returns the value associated with the given switch. If the switch has no // value or isn't present, this method returns the empty string. @@ -226,7 +229,4 @@ class BASE_EXPORT CommandLine { } // namespace base -// TODO(brettw) remove once all callers specify the namespace properly. -using base::CommandLine; - #endif // BASE_COMMAND_LINE_H_ |