From fce8d19805ad83a006bbdd3ca68fc9d8eca621e6 Mon Sep 17 00:00:00 2001 From: brettw Date: Mon, 10 Aug 2015 12:07:51 -0700 Subject: Replace ToLower calls to the new format Replaces base::StringToLowerASCII(string) with base::ToLowerASCII(string) This form is 1:1 search and replace. A bunch of places did something like this: std::string foo(something_else); base::StringToLowerASCII(&foo); which became: foo = base::ToLowerASCII(something_else); A couple places really wanted in-place changing and they became: foo = base::ToLowerASCII(foo); There was pretty trivial cleanup in chrome_main_delegate.cc chrome/test/chromedriver/server/http_handler.cc (fix indenting). There was more cleanup in: chrome/installer/util/language_selector.cc and components/plugins/renderer/mobile_youtube_plugin.cc In components/history/core/browser/url_utils.cc I removed the call since it was calling ToLower on the host name out of a GURL, which is already guaranteed to be lower-case. NOPRESUBMIT=true (due to touching code with wstrings) Review URL: https://codereview.chromium.org/1279123004 Cr-Commit-Position: refs/heads/master@{#342659} --- components/content_settings/core/common/content_settings_pattern.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/content_settings') diff --git a/components/content_settings/core/common/content_settings_pattern.cc b/components/content_settings/core/common/content_settings_pattern.cc index 634e487..1b49ba6 100644 --- a/components/content_settings/core/common/content_settings_pattern.cc +++ b/components/content_settings/core/common/content_settings_pattern.cc @@ -211,7 +211,7 @@ ContentSettingsPattern ContentSettingsPattern::Builder::Build() { // static bool ContentSettingsPattern::Builder::Canonicalize(PatternParts* parts) { // Canonicalize the scheme part. - const std::string scheme(base::StringToLowerASCII(parts->scheme)); + const std::string scheme(base::ToLowerASCII(parts->scheme)); parts->scheme = scheme; if (parts->scheme == std::string(url::kFileScheme) && -- cgit v1.1