diff options
Diffstat (limited to 'net/base/net_util.cc')
-rw-r--r-- | net/base/net_util.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/net/base/net_util.cc b/net/base/net_util.cc index 73df8c6..7ba8a10 100644 --- a/net/base/net_util.cc +++ b/net/base/net_util.cc @@ -1338,14 +1338,12 @@ std::string GetHostName() { } void GetIdentityFromURL(const GURL& url, - std::wstring* username, - std::wstring* password) { + string16* username, + string16* password) { UnescapeRule::Type flags = UnescapeRule::SPACES | UnescapeRule::URL_SPECIAL_CHARS; - *username = UTF16ToWideHack(UnescapeAndDecodeUTF8URLComponent(url.username(), - flags, NULL)); - *password = UTF16ToWideHack(UnescapeAndDecodeUTF8URLComponent(url.password(), - flags, NULL)); + *username = UnescapeAndDecodeUTF8URLComponent(url.username(), flags, NULL); + *password = UnescapeAndDecodeUTF8URLComponent(url.password(), flags, NULL); } std::string GetHostOrSpecFromURL(const GURL& url) { |