summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 20:29:02 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 20:29:02 +0000
commit2c4147f58b41e4a0c4d4f1ee2c8ca324bd469a74 (patch)
tree48b606d2325f1ec235b0996dd83d3f5f83ed12e8 /chrome/browser/browser_main.cc
parent0f7b810640c6d818ab3d6eae52ed897dfc345c7e (diff)
downloadchromium_src-2c4147f58b41e4a0c4d4f1ee2c8ca324bd469a74.zip
chromium_src-2c4147f58b41e4a0c4d4f1ee2c8ca324bd469a74.tar.gz
chromium_src-2c4147f58b41e4a0c4d4f1ee2c8ca324bd469a74.tar.bz2
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
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc6
1 files changed, 3 insertions, 3 deletions
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