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-Commit-Position: refs/heads/master@{#535059}
1 file changed