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

Unified Diff: content/browser/download/download_stats.cc

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger Created 5 years, 6 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: content/browser/download/download_stats.cc
diff --git a/content/browser/download/download_stats.cc b/content/browser/download/download_stats.cc
index d673f866fe0d72d8b19832150743835faf33234e..1dec4d66980ea943b1c6a729700af36d979dfe83 100644
--- a/content/browser/download/download_stats.cc
+++ b/content/browser/download/download_stats.cc
@@ -467,14 +467,14 @@ void RecordDownloadMimeType(const std::string& mime_type_string) {
// Do partial matches.
if (download_content == DOWNLOAD_CONTENT_UNRECOGNIZED) {
- if (StartsWithASCII(mime_type_string, "text/", true)) {
+ if (base::StartsWithASCII(mime_type_string, "text/", true)) {
download_content = DOWNLOAD_CONTENT_TEXT;
- } else if (StartsWithASCII(mime_type_string, "image/", true)) {
+ } else if (base::StartsWithASCII(mime_type_string, "image/", true)) {
download_content = DOWNLOAD_CONTENT_IMAGE;
RecordDownloadImageType(mime_type_string);
- } else if (StartsWithASCII(mime_type_string, "audio/", true)) {
+ } else if (base::StartsWithASCII(mime_type_string, "audio/", true)) {
download_content = DOWNLOAD_CONTENT_AUDIO;
- } else if (StartsWithASCII(mime_type_string, "video/", true)) {
+ } else if (base::StartsWithASCII(mime_type_string, "video/", true)) {
download_content = DOWNLOAD_CONTENT_VIDEO;
}
}

Powered by Google App Engine
This is Rietveld 408576698