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

Unified Diff: chrome/browser/plugins/flash_download_interception_unittest.cc

Issue 2811903002: [HBD] Tighten-up which adobe.com/go links are intercepted as Flash URLs (Closed)
Patch Set: fix Created 3 years, 8 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
Index: chrome/browser/plugins/flash_download_interception_unittest.cc
diff --git a/chrome/browser/plugins/flash_download_interception_unittest.cc b/chrome/browser/plugins/flash_download_interception_unittest.cc
index 9e861fcf56590de8588e65b5775f4562bfec100e..644d9cfaf7134ab3a9e79ec047e34d6b653a9edd 100644
--- a/chrome/browser/plugins/flash_download_interception_unittest.cc
+++ b/chrome/browser/plugins/flash_download_interception_unittest.cc
@@ -49,6 +49,7 @@ TEST_F(FlashDownloadInterceptionTest, DownloadUrlVariations) {
"http://get.adobe.com/flashplayer",
"http://macromedia.com/go/getflashplayer",
"http://adobe.com/go/getflashplayer",
+ "http://adobe.com/go/CA-H-GET-FLASH",
mihai.balan 2017/04/11 06:18:12 The code as it is now would still intercept https:
tommycli 2017/04/11 17:40:04 Done. I added an explicit check to avoid intercept
"http://adobe.com/go/gntray_dl_getflashplayer_jp",
raymes 2017/04/10 23:54:13 I feel like we could add a few more URLs here to m
tommycli 2017/04/11 17:40:05 Done. I added the h-m-a case, but we specifically
};
@@ -58,14 +59,15 @@ TEST_F(FlashDownloadInterceptionTest, DownloadUrlVariations) {
}
const char* flash_no_intercept_urls[] = {
- "https://www.example.com",
tommycli 2017/04/10 23:05:53 git cl format wanted to collaspe these lines...
- "http://example.com/get.adobe.com/flashplayer",
+ "https://www.example.com", "http://example.com/get.adobe.com/flashplayer",
"http://ww.macromedia.com/go/getflashplayer",
"http://wwwxmacromedia.com/go/getflashplayer",
"http://www.adobe.com/software/flash/about/",
"http://www.adobe.com/products/flashplayer.html",
"http://www.adobe.com/products/flashruntimes.html",
"http://www.adobe.com/go/flash",
+ // Don't intercept URLs containing just "fp" without a matching prefix.
+ "http://www.adobe.com/go/non-matching-prefix-fp",
};
for (auto* url : flash_no_intercept_urls) {

Powered by Google App Engine
This is Rietveld 408576698