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

Issue 2421703002: Tiny: Post PerformFullHashCheck on IO thread, instead of calling it synchronously. (Closed)

Created:
4 years, 2 months ago by vakh (use Gerrit instead)
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Post PerformFullHashCheck on IO thread, instead of calling it synchronously. This makes it consistent with the CheckBrowseUrl expectation document in database_manager.h as: // Called on the IO thread to check if the given url is safe or not. If we // can synchronously determine that the url is safe, CheckUrl returns true. // Otherwise it returns false, and "client" is called asynchronously with the // result when it is ready. BUG=543161 Committed: https://crrev.com/ee48f463535c73de660d4bda1185373e0fde11b7 Cr-Commit-Position: refs/heads/master@{#426010}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Test to ensure that PerformFullHashCheck is called async #

Total comments: 1

Patch Set 3 : Add comment about why PerformFullHashCheck is being posted #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -11 lines) Patch
M components/safe_browsing_db/v4_local_database_manager.h View 1 4 chunks +10 lines, -9 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.cc View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M components/safe_browsing_db/v4_local_database_manager_unittest.cc View 1 5 chunks +65 lines, -1 line 0 comments Download

Messages

Total messages: 32 (14 generated)
vakh (use Gerrit instead)
4 years, 2 months ago (2016-10-13 23:04:43 UTC) #4
Scott Hess - ex-Googler
https://codereview.chromium.org/2421703002/diff/1/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2421703002/diff/1/components/safe_browsing_db/v4_local_database_manager.cc#newcode154 components/safe_browsing_db/v4_local_database_manager.cc:154: full_hash_to_store_and_hash_prefixes)); I was thinking this might introduce an extra ...
4 years, 2 months ago (2016-10-14 00:40:59 UTC) #7
vakh (use Gerrit instead)
On 2016/10/14 00:40:59, Scott Hess wrote: > https://codereview.chromium.org/2421703002/diff/1/components/safe_browsing_db/v4_local_database_manager.cc > File components/safe_browsing_db/v4_local_database_manager.cc (right): > > https://codereview.chromium.org/2421703002/diff/1/components/safe_browsing_db/v4_local_database_manager.cc#newcode154 ...
4 years, 2 months ago (2016-10-14 18:25:52 UTC) #8
Scott Hess - ex-Googler
On 2016/10/14 18:25:52, vakh (Varun Khaneja) wrote: > On 2016/10/14 00:40:59, Scott Hess wrote: > ...
4 years, 2 months ago (2016-10-14 19:11:43 UTC) #9
vakh (use Gerrit instead)
On 2016/10/14 19:11:43, Scott Hess wrote: > On 2016/10/14 18:25:52, vakh (Varun Khaneja) wrote: > ...
4 years, 2 months ago (2016-10-14 21:05:08 UTC) #11
Scott Hess - ex-Googler
On 2016/10/14 21:05:08, vakh (Varun Khaneja) wrote: > Done Upload solution?
4 years, 2 months ago (2016-10-14 21:06:38 UTC) #12
Scott Hess - ex-Googler
On 2016/10/14 21:06:38, Scott Hess wrote: > On 2016/10/14 21:05:08, vakh (Varun Khaneja) wrote: > ...
4 years, 2 months ago (2016-10-14 21:10:58 UTC) #13
vakh (use Gerrit instead)
On 2016/10/14 21:10:58, Scott Hess wrote: > On 2016/10/14 21:06:38, Scott Hess wrote: > > ...
4 years, 2 months ago (2016-10-14 21:11:50 UTC) #14
vakh (use Gerrit instead)
Test to ensure that PerformFullHashCheck is called async
4 years, 2 months ago (2016-10-14 22:32:10 UTC) #15
vakh (use Gerrit instead)
On 2016/10/14 21:10:58, Scott Hess wrote: > On 2016/10/14 21:06:38, Scott Hess wrote: > > ...
4 years, 2 months ago (2016-10-14 22:34:03 UTC) #18
Scott Hess - ex-Googler
lgtm
4 years, 2 months ago (2016-10-17 23:24:14 UTC) #21
Nathan Parker
lgtm https://codereview.chromium.org/2421703002/diff/20001/components/safe_browsing_db/v4_local_database_manager.cc File components/safe_browsing_db/v4_local_database_manager.cc (right): https://codereview.chromium.org/2421703002/diff/20001/components/safe_browsing_db/v4_local_database_manager.cc#newcode150 components/safe_browsing_db/v4_local_database_manager.cc:150: BrowserThread::PostTask( Can you add a comment for why ...
4 years, 2 months ago (2016-10-18 04:56:54 UTC) #22
vakh (use Gerrit instead)
Add comment about why PerformFullHashCheck is being posted
4 years, 2 months ago (2016-10-18 17:21:29 UTC) #23
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/2421703002/40001
4 years, 2 months ago (2016-10-18 17:22:04 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-18 18:49:54 UTC) #28
huangs
This CL may be causing current failures for ChromiumOS bots; it's "patient 0". See: https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%281%29/builds/28020 ...
4 years, 2 months ago (2016-10-18 21:38:06 UTC) #29
Guido Urdaneta
We confirmed that this wasn't the cause of the bot failures.
4 years, 2 months ago (2016-10-20 08:17:09 UTC) #30
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:01:51 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ee48f463535c73de660d4bda1185373e0fde11b7
Cr-Commit-Position: refs/heads/master@{#426010}

Powered by Google App Engine
This is Rietveld 408576698