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

Issue 2090013006: [Downloads] Correctly test page transition when calculating danger level. (Closed)

Created:
4 years, 6 months ago by asanka
Modified:
4 years, 5 months ago
Reviewers:
Peter Kasting
CC:
asanka, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -10 lines) Patch
M chrome/browser/download/download_target_determiner.cc View 1 2 1 chunk +15 lines, -10 lines 0 comments Download
M chrome/browser/download/download_target_determiner_unittest.cc View 1 2 1 chunk +119 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
asanka
4 years, 6 months ago (2016-06-23 20:16:45 UTC) #1
Peter Kasting
LGTM https://codereview.chromium.org/2090013006/diff/20001/chrome/browser/download/download_target_determiner.cc File chrome/browser/download/download_target_determiner.cc (right): https://codereview.chromium.org/2090013006/diff/20001/chrome/browser/download/download_target_determiner.cc#newcode893 chrome/browser/download/download_target_determiner.cc:893: // * If the user navigated to the ...
4 years, 5 months ago (2016-06-29 23:35:02 UTC) #2
asanka
https://codereview.chromium.org/2090013006/diff/20001/chrome/browser/download/download_target_determiner.cc File chrome/browser/download/download_target_determiner.cc (right): https://codereview.chromium.org/2090013006/diff/20001/chrome/browser/download/download_target_determiner.cc#newcode893 chrome/browser/download/download_target_determiner.cc:893: // * If the user navigated to the download ...
4 years, 5 months ago (2016-06-30 15:48:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2090013006/60001
4 years, 5 months ago (2016-07-05 15:58:29 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-05 16:40:43 UTC) #7
commit-bot: I haz the power
4 years, 5 months ago (2016-07-05 16:41:48 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1e639fd737e70a09c363d8342c1af3b9d3143280
Cr-Commit-Position: refs/heads/master@{#403792}

Powered by Google App Engine
This is Rietveld 408576698