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

Unified Diff: chrome/renderer/extensions/extension_localization_peer.cc

Issue 1214183008: Update StartsWith calls to use new versions in chrome and content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « chrome/renderer/extensions/app_bindings.cc ('k') | chrome/renderer/extensions/webstore_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/extension_localization_peer.cc
diff --git a/chrome/renderer/extensions/extension_localization_peer.cc b/chrome/renderer/extensions/extension_localization_peer.cc
index 17b9756a51df215fafec51072bd8788e3d6c37d5..bb0adb7faba830b84b35edf70c848fce7a423f80 100644
--- a/chrome/renderer/extensions/extension_localization_peer.cc
+++ b/chrome/renderer/extensions/extension_localization_peer.cc
@@ -55,7 +55,8 @@ ExtensionLocalizationPeer::CreateExtensionLocalizationPeer(
// Return NULL if content is not text/css or it doesn't belong to extension
// scheme.
return (request_url.SchemeIs(extensions::kExtensionScheme) &&
- base::StartsWithASCII(mime_type, "text/css", false))
+ base::StartsWith(mime_type, "text/css",
+ base::CompareCase::INSENSITIVE_ASCII))
? new ExtensionLocalizationPeer(peer, message_sender, request_url)
: NULL;
}
« no previous file with comments | « chrome/renderer/extensions/app_bindings.cc ('k') | chrome/renderer/extensions/webstore_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698