Optimize the Flash download check.

On every navigation we're calling RE2 to check if the URL is a Flash download page. Since the check is using RE2, it takes a lot of CPU (~35% of browser process). Add an early optimization to skip it if the url isn't on adobe.com or macromedia.com.

Bug: 809775
Change-Id: I78c39b7075cadc077dc39db408adda084e9a39fd
Reviewed-on: https://chromium-review.googlesource.com/906829
Reviewed-by: Tommy Li <tommycli@chromium.org>
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#535059}(cherry picked from commit 05ae570847c6db85548ed1cbda3ea376a752dc27)
Reviewed-on: https://chromium-review.googlesource.com/909351
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/branch-heads/3325@{#385}
Cr-Branched-From: bc084a8b5afa3744a74927344e304c02ae54189f-refs/heads/master@{#530369}
1 file changed