Index: extensions/common/user_script.cc |
diff --git a/extensions/common/user_script.cc b/extensions/common/user_script.cc |
index b3d82bba795a04871921edebe6adc55552311be2..6b64741924170006e4ee28814aba76ffb5936ab8 100644 |
--- a/extensions/common/user_script.cc |
+++ b/extensions/common/user_script.cc |
@@ -52,7 +52,8 @@ int UserScript::GenerateUserScriptID() { |
bool UserScript::IsURLUserScript(const GURL& url, |
const std::string& mime_type) { |
- return base::EndsWith(url.ExtractFileName(), kFileExtension, false) && |
+ return base::EndsWith(url.ExtractFileName(), kFileExtension, |
+ base::CompareCase::INSENSITIVE_ASCII) && |
mime_type != "text/html"; |
} |