Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4345)

Unified Diff: chrome/browser/extensions/api/web_request/web_request_api_helpers.cc

Issue 448853002: Move StringToLowerASCII to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/web_request/web_request_api_helpers.cc
diff --git a/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc b/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc
index 7d32183805d7f3556a0cbe4382fc91a46b915ab4..df425e665e16675d72c2a7d8fa32da39240b83b4 100644
--- a/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc
+++ b/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc
@@ -342,7 +342,7 @@ EventResponseDelta* CalculateOnHeadersReceivedDelta(
std::string value;
while (old_response_headers->EnumerateHeaderLines(&iter, &name, &value)) {
std::string name_lowercase(name);
- StringToLowerASCII(&name_lowercase);
+ base::StringToLowerASCII(&name_lowercase);
bool header_found = false;
for (ResponseHeaders::const_iterator i = new_response_headers->begin();
@@ -1017,7 +1017,7 @@ void MergeCookiesInOnHeadersReceivedResponses(
// Converts the key of the (key, value) pair to lower case.
static ResponseHeader ToLowerCase(const ResponseHeader& header) {
std::string lower_key(header.first);
- StringToLowerASCII(&lower_key);
+ base::StringToLowerASCII(&lower_key);
return ResponseHeader(lower_key, header.second);
}
@@ -1026,13 +1026,13 @@ static ResponseHeader ToLowerCase(const ResponseHeader& header) {
static std::string FindRemoveResponseHeader(
const EventResponseDeltas& deltas,
const std::string& key) {
- std::string lower_key = StringToLowerASCII(key);
+ std::string lower_key = base::StringToLowerASCII(key);
EventResponseDeltas::const_iterator delta;
for (delta = deltas.begin(); delta != deltas.end(); ++delta) {
ResponseHeaders::const_iterator i;
for (i = (*delta)->deleted_response_headers.begin();
i != (*delta)->deleted_response_headers.end(); ++i) {
- if (StringToLowerASCII(i->first) == lower_key)
+ if (base::StringToLowerASCII(i->first) == lower_key)
return (*delta)->extension_id;
}
}
« no previous file with comments | « chrome/browser/extensions/api/music_manager_private/device_id_win.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698