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

Issue 2887843002: Replace BrowserThread::FILE in safe browsing with task scheduler. (Closed)

Created:
3 years, 7 months ago by Sigurður Ásgeirsson
Modified:
3 years, 6 months ago
Reviewers:
Nathan Parker, gab, fdoray
CC:
chromium-reviews, vakh+watch_chromium.org, joenotcharles+watch_chromium.org, grt+watch_chromium.org, timvolodine, csharp+watch_chromium.org, alito+watch_chromium.org, ftirelo+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace BrowserThread::FILE in safe browsing with task scheduler. BUG=689520 Review-Url: https://codereview.chromium.org/2887843002 Cr-Commit-Position: refs/heads/master@{#477791} Committed: https://chromium.googlesource.com/chromium/src/+/3eef4a0999119b7e1aa6f948bb7ff71d5ebac91f

Patch Set 1 #

Total comments: 1

Patch Set 2 : Replace BrowserThread::FILE DownloadFeedbackTest. #

Total comments: 2

Patch Set 3 : Rebase to ToT. Fix tests. #

Total comments: 4

Patch Set 4 : Switch SingleThread->SequencedTaskRunner per Gab's request. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -17 lines) Patch
M chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_fetcher_win.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service_unittest.cc View 3 chunks +0 lines, -4 lines 2 comments Download
M chrome/browser/safe_browsing/download_feedback_service_unittest.cc View 1 2 3 6 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/download_feedback_unittest.cc View 1 2 3 5 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
Sigurður Ásgeirsson
https://codereview.chromium.org/2887843002/diff/1/chrome/browser/safe_browsing/download_feedback_service_unittest.cc File chrome/browser/safe_browsing/download_feedback_service_unittest.cc (right): https://codereview.chromium.org/2887843002/diff/1/chrome/browser/safe_browsing/download_feedback_service_unittest.cc#newcode428 chrome/browser/safe_browsing/download_feedback_service_unittest.cc:428: base::RunLoop().RunUntilIdle(); This is now racy, as the before/after tests ...
3 years, 7 months ago (2017-05-16 17:22:43 UTC) #2
Sigurður Ásgeirsson
Two more cases of the same pattern in this directory. https://codereview.chromium.org/2887843002/diff/20001/chrome/browser/safe_browsing/download_feedback_unittest.cc File chrome/browser/safe_browsing/download_feedback_unittest.cc (right): https://codereview.chromium.org/2887843002/diff/20001/chrome/browser/safe_browsing/download_feedback_unittest.cc#newcode191 ...
3 years, 7 months ago (2017-05-16 17:31:22 UTC) #3
gab
Hey Siggi, so you need to replace those base::RunLoop().RunUntilIdle(); with content::RunAllBlockingPoolTasksUntilIdle() from content/public/test/test_utils.h. Then it ...
3 years, 6 months ago (2017-06-01 13:48:05 UTC) #4
Sigurður Ásgeirsson
Hey Gab, Francois, please take a look - seems everything's more or less passing :O. ...
3 years, 6 months ago (2017-06-05 18:14:20 UTC) #7
gab
https://codereview.chromium.org/2887843002/diff/40001/chrome/browser/safe_browsing/download_feedback_service_unittest.cc File chrome/browser/safe_browsing/download_feedback_service_unittest.cc (right): https://codereview.chromium.org/2887843002/diff/40001/chrome/browser/safe_browsing/download_feedback_service_unittest.cc#newcode135 chrome/browser/safe_browsing/download_feedback_service_unittest.cc:135: : file_task_runner_(base::CreateSingleThreadTaskRunnerWithTraits( Can this use CreateSequencedTaskRunnerWithTraits? We want to ...
3 years, 6 months ago (2017-06-05 19:33:40 UTC) #10
Sigurður Ásgeirsson
Thanks - looks like a SequencedTaskRunner works just fine. https://codereview.chromium.org/2887843002/diff/40001/chrome/browser/safe_browsing/download_feedback_service_unittest.cc File chrome/browser/safe_browsing/download_feedback_service_unittest.cc (right): https://codereview.chromium.org/2887843002/diff/40001/chrome/browser/safe_browsing/download_feedback_service_unittest.cc#newcode135 chrome/browser/safe_browsing/download_feedback_service_unittest.cc:135: ...
3 years, 6 months ago (2017-06-06 13:52:00 UTC) #13
gab
lgtm, thanks https://codereview.chromium.org/2887843002/diff/60001/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc File chrome/browser/safe_browsing/client_side_detection_service_unittest.cc (left): https://codereview.chromium.org/2887843002/diff/60001/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc#oldcode255 chrome/browser/safe_browsing/client_side_detection_service_unittest.cc:255: std::unique_ptr<content::TestBrowserThread> file_thread_; I'm surprised this test doesn't ...
3 years, 6 months ago (2017-06-06 14:34:53 UTC) #14
Sigurður Ásgeirsson
Nathan, can you give this the OWNER blessing, please? https://codereview.chromium.org/2887843002/diff/60001/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc File chrome/browser/safe_browsing/client_side_detection_service_unittest.cc (left): https://codereview.chromium.org/2887843002/diff/60001/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc#oldcode255 chrome/browser/safe_browsing/client_side_detection_service_unittest.cc:255: ...
3 years, 6 months ago (2017-06-06 14:45:01 UTC) #18
fdoray
lgtm
3 years, 6 months ago (2017-06-06 17:13:41 UTC) #19
Sigurður Ásgeirsson
Nathan, gentle nudge. Is there someone else better suited to reviewing this?
3 years, 6 months ago (2017-06-07 18:15:06 UTC) #20
Nathan Parker
lgtm
3 years, 6 months ago (2017-06-07 22:05:01 UTC) #21
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/2887843002/60001
3 years, 6 months ago (2017-06-07 22:06:28 UTC) #23
commit-bot: I haz the power
3 years, 6 months ago (2017-06-07 23:32:35 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/3eef4a0999119b7e1aa6f948bb7f...

Powered by Google App Engine
This is Rietveld 408576698