From 2c4147f58b41e4a0c4d4f1ee2c8ca324bd469a74 Mon Sep 17 00:00:00 2001 From: "viettrungluu@chromium.org" Date: Wed, 21 Apr 2010 20:29:02 +0000 Subject: Fix a deprecated use of wstring/GetSwitchValue() for --file-descriptor-limit. BUG=none TEST=none Review URL: http://codereview.chromium.org/1764001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45231 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome') diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc index 120a7c1..7d7e6ab 100644 --- a/chrome/browser/browser_main.cc +++ b/chrome/browser/browser_main.cc @@ -658,11 +658,11 @@ int BrowserMain(const MainFunctionParams& parameters) { action.sa_handler = SIGHUPHandler; CHECK(sigaction(SIGHUP, &action, NULL) == 0); - const std::wstring fd_limit_string = - parsed_command_line.GetSwitchValue(switches::kFileDescriptorLimit); + const std::string fd_limit_string = + parsed_command_line.GetSwitchValueASCII(switches::kFileDescriptorLimit); int fd_limit = 0; if (!fd_limit_string.empty()) { - StringToInt(WideToUTF16Hack(fd_limit_string), &fd_limit); + StringToInt(fd_limit_string, &fd_limit); } #if defined(OS_MACOSX) // We use quite a few file descriptors for our IPC, and the default limit on -- cgit v1.1