From cdde25e0bdfea5afa7c3b29374a35137ec5e7c1d Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Thu, 1 Sep 2011 19:56:22 +0000 Subject: IDNToUnicodeWithOffsets() supports NULL for the offset vector, so make IDNToUnicode() use it. BUG=none TEST=none Review URL: http://codereview.chromium.org/7819015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99232 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/net_util.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'net/base/net_util.cc') diff --git a/net/base/net_util.cc b/net/base/net_util.cc index a288a62..7fcda38 100644 --- a/net/base/net_util.cc +++ b/net/base/net_util.cc @@ -1280,8 +1280,7 @@ std::string GetHeaderParamValue(const std::string& header, string16 IDNToUnicode(const std::string& host, const std::string& languages) { - std::vector offsets; - return IDNToUnicodeWithOffsets(host, languages, &offsets); + return IDNToUnicodeWithOffsets(host, languages, NULL); } std::string CanonicalizeHost(const std::string& host, -- cgit v1.1