diff options
author | brettw <brettw@chromium.org> | 2015-11-02 04:23:24 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-02 12:24:05 +0000 |
commit | 5d9950957b2b886381f19ca6681a314dac96a5a4 (patch) | |
tree | ecf26bdba8a736c69b74a135f8e72e6241092412 | |
parent | 2a88bf4073c19256c607f2224b013156b50f7430 (diff) | |
download | chromium_src-5d9950957b2b886381f19ca6681a314dac96a5a4.zip chromium_src-5d9950957b2b886381f19ca6681a314dac96a5a4.tar.gz chromium_src-5d9950957b2b886381f19ca6681a314dac96a5a4.tar.bz2 |
Fix mobile YouTube plugin.
This is a regression from https://crrev.com/fce8d19805ad83a006bbdd3ca68fc9d8eca621e6 where the string conditions were messed up in the update.
BUG=544980
Review URL: https://codereview.chromium.org/1423623006
Cr-Commit-Position: refs/heads/master@{#357339}
-rw-r--r-- | components/plugins/renderer/mobile_youtube_plugin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/plugins/renderer/mobile_youtube_plugin.cc b/components/plugins/renderer/mobile_youtube_plugin.cc index dc3dea3..f2ec9d6 100644 --- a/components/plugins/renderer/mobile_youtube_plugin.cc +++ b/components/plugins/renderer/mobile_youtube_plugin.cc @@ -51,7 +51,7 @@ bool IsValidYouTubeVideo(const std::string& path) { // Youtube flash url can start with /v/ or /e/. if (!base::StartsWith(path, kSlashVSlash, - base::CompareCase::INSENSITIVE_ASCII) || + base::CompareCase::INSENSITIVE_ASCII) && !base::StartsWith(path, kSlashESlash, base::CompareCase::INSENSITIVE_ASCII)) return false; |