summaryrefslogtreecommitdiffstats
path: root/components/os_crypt
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-08-10 12:07:51 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-10 19:08:31 +0000
commitfce8d19805ad83a006bbdd3ca68fc9d8eca621e6 (patch)
tree53b8fca581ffa89718788efe7a4295a662554d03 /components/os_crypt
parenta794ba10af6e3ac6d4661a2edc6f8d60642218af (diff)
downloadchromium_src-fce8d19805ad83a006bbdd3ca68fc9d8eca621e6.zip
chromium_src-fce8d19805ad83a006bbdd3ca68fc9d8eca621e6.tar.gz
chromium_src-fce8d19805ad83a006bbdd3ca68fc9d8eca621e6.tar.bz2
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}
Diffstat (limited to 'components/os_crypt')
-rw-r--r--components/os_crypt/ie7_password_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/os_crypt/ie7_password_win.cc b/components/os_crypt/ie7_password_win.cc
index a2691f9..eebd57b 100644
--- a/components/os_crypt/ie7_password_win.cc
+++ b/components/os_crypt/ie7_password_win.cc
@@ -95,7 +95,7 @@ bool GetUserPassFromData(const std::vector<unsigned char>& data,
}
std::wstring GetUrlHash(const std::wstring& url) {
- std::wstring lower_case_url = base::StringToLowerASCII(url);
+ std::wstring lower_case_url = base::ToLowerASCII(url);
// Get a data buffer out of our std::wstring to pass to SHA1HashString.
std::string url_buffer(
reinterpret_cast<const char*>(lower_case_url.c_str()),
@@ -121,7 +121,7 @@ std::wstring GetUrlHash(const std::wstring& url) {
bool DecryptPasswords(const std::wstring& url,
const std::vector<unsigned char>& data,
std::vector<DecryptedCredentials>* credentials) {
- std::wstring lower_case_url = base::StringToLowerASCII(url);
+ std::wstring lower_case_url = base::ToLowerASCII(url);
DATA_BLOB input = {0};
DATA_BLOB output = {0};
DATA_BLOB url_key = {0};