|
|
Created:
3 years, 11 months ago by vakh (use Gerrit instead) Modified:
3 years, 11 months ago Reviewers:
Nathan Parker CC:
chromium-reviews, vakh+watch_chromium.org, Scott Hess - ex-Googler Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd the missing callback to client for CheckResourceUrl.
Also updated the test to check for the matching full hash in that case.
BUG=679906
Review-Url: https://codereview.chromium.org/2622063002
Cr-Commit-Position: refs/heads/master@{#443096}
Committed: https://chromium.googlesource.com/chromium/src/+/ff1a6112240cb285eab6a15a62419c2359b84ff5
Patch Set 1 : Add the missing callback to client for CheckResourceUrl #Patch Set 2 : rebase #
Total comments: 2
Patch Set 3 : nit: fix mistake in rebase #
Total comments: 2
Patch Set 4 : Add test, incorporate nparker@ feedback #
Total comments: 5
Patch Set 5 : Incorporate nparker@ feedback #
Messages
Total messages: 35 (23 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...
Add the missing callback to client for CheckResourceUrl
The CQ bit was checked by vakh@chromium.org to run a CQ dry run
Patchset #1 (id:1) has been deleted
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: + nparker@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
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...
nit: fix mistake in 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...
https://codereview.chromium.org/2622063002/diff/40001/components/safe_browsin... File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2622063002/diff/40001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.cc:656: if (check->client_callback_type == ClientCallbackType::CHECK_BROWSE_URL) { How about a switch statement, so the compiler will enforce that you've dealt with all the cases? CHECK_OTHER could call NOTREACHED still. https://codereview.chromium.org/2622063002/diff/60001/components/safe_browsin... File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2622063002/diff/60001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.cc:242: bool V4LocalDatabaseManager::CheckResourceUrl(const GURL& url, Client* client) { How about a unit test for this?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...)
Add test, incorporate nparker@ feedback
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...
PTAL. Thanks. https://codereview.chromium.org/2622063002/diff/40001/components/safe_browsin... File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2622063002/diff/40001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.cc:656: if (check->client_callback_type == ClientCallbackType::CHECK_BROWSE_URL) { On 2017/01/11 00:13:35, Nathan Parker wrote: > How about a switch statement, so the compiler will enforce that you've dealt > with all the cases? CHECK_OTHER could call NOTREACHED still. Done. https://codereview.chromium.org/2622063002/diff/60001/components/safe_browsin... File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2622063002/diff/60001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.cc:242: bool V4LocalDatabaseManager::CheckResourceUrl(const GURL& url, Client* client) { On 2017/01/11 00:13:35, Nathan Parker wrote: > How about a unit test for this? Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm LGTM w/ one suggestion and one nit https://codereview.chromium.org/2622063002/diff/80001/components/safe_browsin... File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2622063002/diff/80001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.cc:657: case ClientCallbackType::CHECK_BROWSE_URL: { nit: You don't need the {}'s, unless you're using them to scope something (just on the last one) https://codereview.chromium.org/2622063002/diff/80001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.cc:683: Don't include default here (instead list the _OTHER). That way when someone adds a new callbackType, the compiler will complain here.
Incorporate nparker@ feedback
The CQ bit was checked by vakh@chromium.org to run a CQ dry run
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 Link to the patchset: https://codereview.chromium.org/2622063002/#ps100001 (title: "Incorporate nparker@ feedback")
https://codereview.chromium.org/2622063002/diff/80001/components/safe_browsin... File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2622063002/diff/80001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.cc:657: case ClientCallbackType::CHECK_BROWSE_URL: { On 2017/01/11 22:59:59, Nathan Parker wrote: > nit: You don't need the {}'s, unless you're using them to scope something (just > on the last one) Done. https://codereview.chromium.org/2622063002/diff/80001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.cc:683: On 2017/01/11 22:59:59, Nathan Parker wrote: > Don't include default here (instead list the _OTHER). That way when someone adds > a new callbackType, the compiler will complain here. Done. https://codereview.chromium.org/2622063002/diff/80001/components/safe_browsin... components/safe_browsing_db/v4_local_database_manager.cc:683: On 2017/01/11 22:59:59, Nathan Parker wrote: > Don't include default here (instead list the _OTHER). That way when someone adds > a new callbackType, the compiler will complain here. Done.
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 100001, "attempt_start_ts": 1484176967476710, "parent_rev": "fc0c5aaa4f06389720901ff12af43fe6738515ac", "commit_rev": "ff1a6112240cb285eab6a15a62419c2359b84ff5"}
Message was sent while issue was closed.
Description was changed from ========== Add the missing callback to client for CheckResourceUrl. Also updated the test to check for the matching full hash in that case. BUG=679906 ========== to ========== Add the missing callback to client for CheckResourceUrl. Also updated the test to check for the matching full hash in that case. BUG=679906 Review-Url: https://codereview.chromium.org/2622063002 Cr-Commit-Position: refs/heads/master@{#443096} Committed: https://chromium.googlesource.com/chromium/src/+/ff1a6112240cb285eab6a15a6241... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as https://chromium.googlesource.com/chromium/src/+/ff1a6112240cb285eab6a15a6241... |