summaryrefslogtreecommitdiffstats
path: root/base/command_line.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-09 20:36:48 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-09 20:36:48 +0000
commitdd33fa43a759529bd471ca531b0694d4a70c5472 (patch)
treee0e0d09c90bb32736b1165ce8a267a024a2a020a /base/command_line.cc
parent8223d600c2b1a8e2c218729ac9b968b849cf3765 (diff)
downloadchromium_src-dd33fa43a759529bd471ca531b0694d4a70c5472.zip
chromium_src-dd33fa43a759529bd471ca531b0694d4a70c5472.tar.gz
chromium_src-dd33fa43a759529bd471ca531b0694d4a70c5472.tar.bz2
CommandLine: Deprecate a function on non-Windows.
Merge deprecated functions together. TEST=compiles Review URL: http://codereview.chromium.org/3029068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55460 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/command_line.cc')
-rw-r--r--base/command_line.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/command_line.cc b/base/command_line.cc
index 8d36e16..835ad9d 100644
--- a/base/command_line.cc
+++ b/base/command_line.cc
@@ -280,9 +280,12 @@ bool CommandLine::HasSwitch(const std::string& switch_string) const {
return switches_.find(lowercased_switch) != switches_.end();
}
+#if defined(OS_WIN)
+// Deprecated; still temporarily available on Windows.
bool CommandLine::HasSwitch(const std::wstring& switch_string) const {
return HasSwitch(WideToASCII(switch_string));
}
+#endif
std::string CommandLine::GetSwitchValueASCII(
const std::string& switch_string) const {