summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-18 03:29:07 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-18 03:29:07 +0000
commit8ec5cf2ac8e296fcd264599f4a72cb108d40764a (patch)
treee7b091d8a3e9e0539c355f31b0d83849d9b382e5 /net
parentfc894173575bd106e5820f4b4678264e0bd575c2 (diff)
downloadchromium_src-8ec5cf2ac8e296fcd264599f4a72cb108d40764a.zip
chromium_src-8ec5cf2ac8e296fcd264599f4a72cb108d40764a.tar.gz
chromium_src-8ec5cf2ac8e296fcd264599f4a72cb108d40764a.tar.bz2
net/base: remove some wstrings
Review URL: http://codereview.chromium.org/9221030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/net_util.cc4
-rw-r--r--net/base/registry_controlled_domain_unittest.cc6
2 files changed, 5 insertions, 5 deletions
diff --git a/net/base/net_util.cc b/net/base/net_util.cc
index 12190d6..9417c1a 100644
--- a/net/base/net_util.cc
+++ b/net/base/net_util.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -1518,7 +1518,7 @@ string16 GetSuggestedFilename(const GURL& url,
// whitespace to prevent file extension obfuscation on trusted websites
// e.g. Gmail might think evil.exe. is safe, so we don't want it to become
// evil.exe when we download it
- std::wstring::size_type path_length_before_trim = path.length();
+ string16::size_type path_length_before_trim = path.length();
TrimWhitespace(path, TRIM_TRAILING, &path);
trimmed_trailing_character_count += path_length_before_trim - path.length();
file_util::ReplaceIllegalCharactersInPath(&path, '-');
diff --git a/net/base/registry_controlled_domain_unittest.cc b/net/base/registry_controlled_domain_unittest.cc
index c0fd07f..464e417 100644
--- a/net/base/registry_controlled_domain_unittest.cc
+++ b/net/base/registry_controlled_domain_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -89,7 +89,7 @@ TEST_F(RegistryControlledDomainTest, TestGetDomainAndRegistry) {
EXPECT_EQ("", GetDomainFromURL("http://localhost."));
EXPECT_EQ("", GetDomainFromURL("http:////Comment"));
- // Test std::wstring version of GetDomainAndRegistry(). Uses the same
+ // Test std::string version of GetDomainAndRegistry(). Uses the same
// underpinnings as the GURL version, so this is really more of a check of
// CanonicalizeHost().
EXPECT_EQ("baz.jp", GetDomainFromHost("a.baz.jp")); // 1
@@ -156,7 +156,7 @@ TEST_F(RegistryControlledDomainTest, TestGetRegistryLength) {
EXPECT_EQ(0U, GetRegistryLengthFromURL("http://localhost.", true));
EXPECT_EQ(0U, GetRegistryLengthFromURL("http:////Comment", false));
- // Test std::wstring version of GetRegistryLength(). Uses the same
+ // Test std::string version of GetRegistryLength(). Uses the same
// underpinnings as the GURL version, so this is really more of a check of
// CanonicalizeHost().
EXPECT_EQ(2U, GetRegistryLengthFromHost("a.baz.jp", false)); // 1