diff options
author | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-28 01:01:50 +0000 |
---|---|---|
committer | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-28 01:01:50 +0000 |
commit | 41fb1d7d262e44d8561a5c4d6d7e353f638b56e8 (patch) | |
tree | 0b6159a725069a98f9fb6e6e451949a6ce37ccfa /chrome/browser/browser_init.cc | |
parent | 3131a289c0edff9d58da46cae16beae6bd6c0650 (diff) | |
download | chromium_src-41fb1d7d262e44d8561a5c4d6d7e353f638b56e8.zip chromium_src-41fb1d7d262e44d8561a5c4d6d7e353f638b56e8.tar.gz chromium_src-41fb1d7d262e44d8561a5c4d6d7e353f638b56e8.tar.bz2 |
Get rid of wstring variants of StringToFoo.
Review URL: http://codereview.chromium.org/28281
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10664 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_init.cc')
-rw-r--r-- | chrome/browser/browser_init.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc index b393d18..8b5eb37 100644 --- a/chrome/browser/browser_init.cc +++ b/chrome/browser/browser_init.cc @@ -217,7 +217,7 @@ bool BrowserInit::LaunchWithProfile::Launch(Profile* profile, if (!RenderProcessHost::run_renderer_in_process()) { std::wstring port_str = command_line_.GetSwitchValue(switches::kRemoteShellPort); - int64 port = StringToInt64(port_str); + int64 port = StringToInt64(WideToUTF16Hack(port_str)); if (port > 0 && port < 65535) { g_browser_process->InitDebuggerWrapper(static_cast<int>(port)); } else { @@ -425,7 +425,7 @@ bool BrowserInit::ProcessCommandLine( command_line.GetSwitchValue(switches::kOmniBoxPopupCount); if (!popup_count_string.empty()) { int count = 0; - if (StringToInt(popup_count_string, &count)) { + if (StringToInt(WideToUTF16Hack(popup_count_string), &count)) { const int popup_count = std::max(0, count); AutocompleteResult::set_max_matches(popup_count); AutocompleteProvider::set_max_matches(popup_count / 2); @@ -439,7 +439,7 @@ bool BrowserInit::ProcessCommandLine( command_line.GetSwitchValue(switches::kTabCountToLoadOnSessionRestore); if (!tab_count_string.empty()) { int count = 0; - if (StringToInt(tab_count_string, &count)) { + if (StringToInt(WideToUTF16Hack(tab_count_string), &count)) { const int tab_count = std::max(0, count); SessionRestore::num_tabs_to_load_ = static_cast<size_t>(tab_count); } |