Index: components/plugins/renderer/mobile_youtube_plugin.cc |
diff --git a/components/plugins/renderer/mobile_youtube_plugin.cc b/components/plugins/renderer/mobile_youtube_plugin.cc |
index af24a2b3dcfc3c4d546085f0aaacd0b6a872940b..7b576df01c78790795018c69c16c25fe723965d1 100644 |
--- a/components/plugins/renderer/mobile_youtube_plugin.cc |
+++ b/components/plugins/renderer/mobile_youtube_plugin.cc |
@@ -89,8 +89,10 @@ MobileYouTubePlugin::~MobileYouTubePlugin() {} |
bool MobileYouTubePlugin::IsYouTubeURL(const GURL& url, |
const std::string& mime_type) { |
std::string host = url.host(); |
- bool is_youtube = base::EndsWith(host, "youtube.com", true) || |
- base::EndsWith(host, "youtube-nocookie.com", true); |
+ bool is_youtube = |
+ base::EndsWith(host, "youtube.com", base::CompareCase::SENSITIVE) || |
+ base::EndsWith(host, "youtube-nocookie.com", |
+ base::CompareCase::SENSITIVE); |
return is_youtube && IsValidYouTubeVideo(url.path()) && |
base::LowerCaseEqualsASCII(mime_type, |