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

Unified Diff: chrome/utility/media_galleries/media_metadata_parser.cc

Issue 1220963005: Update base::StartsWith calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: 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: chrome/utility/media_galleries/media_metadata_parser.cc
diff --git a/chrome/utility/media_galleries/media_metadata_parser.cc b/chrome/utility/media_galleries/media_metadata_parser.cc
index a39324ecafc6038cdd6bda6f0311019887e0970a..b1fb81c53203784c1b1894c7a3f4e4b98e59bc9b 100644
--- a/chrome/utility/media_galleries/media_metadata_parser.cc
+++ b/chrome/utility/media_galleries/media_metadata_parser.cc
@@ -166,8 +166,8 @@ MediaMetadataParser::MediaMetadataParser(media::DataSource* source,
MediaMetadataParser::~MediaMetadataParser() {}
void MediaMetadataParser::Start(const MetadataCallback& callback) {
- if (base::StartsWithASCII(mime_type_, "audio/", true) ||
- base::StartsWithASCII(mime_type_, "video/", true)) {
+ if (base::StartsWith(mime_type_, "audio/", base::CompareCase::SENSITIVE) ||
+ base::StartsWith(mime_type_, "video/", base::CompareCase::SENSITIVE)) {
MediaMetadata* metadata = new MediaMetadata;
metadata->mime_type = mime_type_;
std::vector<AttachedImage>* attached_images =
@@ -183,7 +183,7 @@ void MediaMetadataParser::Start(const MetadataCallback& callback) {
return;
}
- if (base::StartsWithASCII(mime_type_, "image/", true)) {
+ if (base::StartsWith(mime_type_, "image/", base::CompareCase::SENSITIVE)) {
ImageMetadataExtractor* extractor = new ImageMetadataExtractor;
extractor->Extract(
source_,

Powered by Google App Engine
This is Rietveld 408576698