Index: base/command_line.cc |
diff --git a/base/command_line.cc b/base/command_line.cc |
index 6125667d3ec8e66dcead5ec8147fd5879bd6ad48..48d44f99bac7244ee085f778971256cb19dd073f 100644 |
--- a/base/command_line.cc |
+++ b/base/command_line.cc |
@@ -266,6 +266,10 @@ bool CommandLine::HasSwitch(const std::string& switch_string) const { |
return switches_.find(LowerASCIIOnWindows(switch_string)) != switches_.end(); |
} |
+bool CommandLine::HasSwitch(const char string_constant[]) const { |
+ return HasSwitch(std::string(string_constant)); |
+} |
+ |
std::string CommandLine::GetSwitchValueASCII( |
const std::string& switch_string) const { |
StringType value = GetSwitchValueNative(switch_string); |