Chromium Code Reviews
Description[Downloads] Correctly test page transition when calculating danger level.
One of the heuristics used to minimize spurious dangerous download
warnings is to check if the navigation that resulted in the download was
initiated via the Omnibox. The test was incorrectly checking if a
ui::PageTransition value was equal to PAGE_TRANSITION_FROM_ADDRESS_BAR.
However, PAGE_TRANSITION_FROM_ADDRESS_BAR is a bit mask that can
accompany multiple core page transition types. This CL fixes the code to
correctly check the single bit.
R=pkasting@chromium.org
BUG=622834
Committed: https://crrev.com/1e639fd737e70a09c363d8342c1af3b9d3143280
Cr-Commit-Position: refs/heads/master@{#403792}
Patch Set 1 #Patch Set 2 : Update comment #
Total comments: 10
Patch Set 3 : Rework how tests cases are written. Fix wording of comments. #Patch Set 4 : Merge with ToT #
Messages
Total messages: 9 (3 generated)
|
||||||||||||||||||||||||||||