|
|
Chromium Code Reviews|
Created:
4 years, 1 month ago by vakh (use Gerrit instead) Modified:
4 years, 1 month ago CC:
chromium-reviews, vakh+watch_chromium.org, Steven Holte Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionSmall: Implement CheckDownloadUrls -- not called yet.
The structure is very similar to CheckBrowseUrl so it should be an easy
review.
BUG=543161
Committed: https://crrev.com/e2fd18bc20db5dc5f99b14a2bb553ceaeff06d86
Cr-Commit-Position: refs/heads/master@{#427905}
Patch Set 1 : Implement CheckDownloadUrls -- not called yet #Patch Set 2 : DRY: Don't repeat yourself #
Total comments: 8
Patch Set 3 : nparker@ review + some tests #Patch Set 4 : git rebase #Patch Set 5 : Windows doesn't like struct in .h file. Reverted test changes. #Patch Set 6 : s/V4LocalDatabaseManager::PendingCheck/PendingCheck #Patch Set 7 : Remove histograms change. Will send that as a separate CL. Remove an unused variable. #
Dependent Patchsets: Messages
Total messages: 49 (32 generated)
The CQ bit was checked by vakh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Use the right store: GetUrlMalBinId()
The CQ bit was checked by vakh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Call OnCheckDownloadUrlResult when the result is available
The CQ bit was checked by vakh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #2 (id:20001) has been deleted
Patchset #1 (id:1) has been deleted
DRY: Don't repeat yourself
The CQ bit was checked by vakh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
vakh@chromium.org changed reviewers: + nparker@chromium.org, shess@chromium.org
lgtm
lgtm https://codereview.chromium.org/2450633003/diff/60001/components/safe_browsin... File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2450633003/diff/60001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.cc:153: std::vector<GURL>(1, url)); nit: Does {url} work here? I'm not sure if that will avoid a temporary or not. https://codereview.chromium.org/2450633003/diff/60001/components/safe_browsin... File components/safe_browsing_db/v4_local_database_manager.h (right): https://codereview.chromium.org/2450633003/diff/60001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.h:81: enum class ClientCallbackType { Nit: Could this and the PendingCheck go in the .cc file? It's an implenentation detail, so it'd make the .h easier to read for clients calling this. Looks like PendingCheck is only referenced by ptr. https://codereview.chromium.org/2450633003/diff/60001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.h:91: CHECK_MAX Nit: you don't really need a max if you're going to have a specific branch of code for each value, since you'll detect bad ones there. https://codereview.chromium.org/2450633003/diff/60001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.h:125: // The URL that is being checked for being unsafe. URL(s) that are...
nparker@ review + some tests
The CQ bit was checked by vakh@chromium.org to run a CQ dry run
https://codereview.chromium.org/2450633003/diff/60001/components/safe_browsin... File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2450633003/diff/60001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.cc:153: std::vector<GURL>(1, url)); On 2016/10/26 00:45:45, Nathan Parker wrote: > nit: Does {url} work here? I'm not sure if that will avoid a temporary or not. Tried it. MakeUnique doesn't like it very much. https://codereview.chromium.org/2450633003/diff/60001/components/safe_browsin... File components/safe_browsing_db/v4_local_database_manager.h (right): https://codereview.chromium.org/2450633003/diff/60001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.h:81: enum class ClientCallbackType { On 2016/10/26 00:45:45, Nathan Parker wrote: > Nit: Could this and the PendingCheck go in the .cc file? It's an implenentation > detail, so it'd make the .h easier to read for clients calling this. > > Looks like PendingCheck is only referenced by ptr. Done. https://codereview.chromium.org/2450633003/diff/60001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.h:91: CHECK_MAX On 2016/10/26 00:45:45, Nathan Parker wrote: > Nit: you don't really need a max if you're going to have a specific branch of > code for each value, since you'll detect bad ones there. Done. https://codereview.chromium.org/2450633003/diff/60001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.h:125: // The URL that is being checked for being unsafe. On 2016/10/26 00:45:45, Nathan Parker wrote: > URL(s) that are... Done.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
git rebase
The CQ bit was checked by vakh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
Windows doesn't like struct in .h file. Reverted test changes.
The CQ bit was checked by vakh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
vakh@chromium.org changed reviewers: + holte@chromium.org
holte@ -- please review the one-line change in histograms.xml
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
s/V4LocalDatabaseManager::PendingCheck/PendingCheck
The CQ bit was checked by vakh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Remove histograms change. Will send that as a separate CL. Remove an unused variable.
The CQ bit was checked by vakh@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from nparker@chromium.org, shess@chromium.org Link to the patchset: https://codereview.chromium.org/2450633003/#ps160001 (title: "Remove histograms change. Will send that as a separate CL. Remove an unused variable.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
vakh@chromium.org changed reviewers: - holte@chromium.org
-R/+CC: holte@ -- Will send a separate CL including other related changes for the histogram.
Message was sent while issue was closed.
Committed patchset #7 (id:160001)
Message was sent while issue was closed.
Description was changed from ========== Small: Implement CheckDownloadUrls -- not called yet. The structure is very similar to CheckBrowseUrl so it should be an easy review. BUG=543161 ========== to ========== Small: Implement CheckDownloadUrls -- not called yet. The structure is very similar to CheckBrowseUrl so it should be an easy review. BUG=543161 Committed: https://crrev.com/e2fd18bc20db5dc5f99b14a2bb553ceaeff06d86 Cr-Commit-Position: refs/heads/master@{#427905} ==========
Message was sent while issue was closed.
Patchset 7 (id:??) landed as https://crrev.com/e2fd18bc20db5dc5f99b14a2bb553ceaeff06d86 Cr-Commit-Position: refs/heads/master@{#427905} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
