summaryrefslogtreecommitdiffstats
path: root/components/plugins/renderer/mobile_youtube_plugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/plugins/renderer/mobile_youtube_plugin.cc')
-rw-r--r--components/plugins/renderer/mobile_youtube_plugin.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/plugins/renderer/mobile_youtube_plugin.cc b/components/plugins/renderer/mobile_youtube_plugin.cc
index af24a2b..7b576df 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,