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

Issue 380993002: Upstream RunBlockingPoolTask(). (Closed)

Created:
6 years, 5 months ago by mtomasz
Modified:
6 years, 5 months ago
Reviewers:
hashimoto, sky
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, jam, nkostylev+watch_chromium.org, zea+watch_chromium.org, tzik, tfarina, yoshiki+watch_chromium.org, haitaol+watch_chromium.org, nhiroki, rginda+watch_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org, maniscalco+watch_chromium.org, not at google - send to devlin
Project:
chromium
Visibility:
Public.

Description

Upstream RunBlockingPoolTask(). This routine used to be used by Drive tests only. However, File System Provider API code would also like to take advantage of it. Note, that this function should be used in tens of other places in Chromium code base, instead SequencedWorkerPool::FlushForTesting() more than once if several rounds of posting tasks to the blocking pool may happen. TEST=Refactoring only. Compiles and passes all current tests. BUG=392716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283333

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments. #

Total comments: 5

Patch Set 3 : Addressed comments. #

Total comments: 2

Patch Set 4 : Fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -276 lines) Patch
M chrome/browser/chromeos/drive/download_handler_unittest.cc View 7 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/drive_integration_service_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc View 17 chunks +17 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/create_directory_operation_unittest.cc View 8 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/create_file_operation_unittest.cc View 10 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc View 19 chunks +19 lines, -18 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/move_operation_unittest.cc View 6 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/open_file_operation_unittest.cc View 9 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_test_base.cc View 9 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/remove_operation_unittest.cc View 7 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/search_operation_unittest.cc View 7 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/touch_operation_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/truncate_operation_unittest.cc View 7 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_unittest.cc View 29 chunks +29 lines, -29 lines 0 comments Download
M chrome/browser/chromeos/drive/fileapi/fileapi_worker_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/drive/sync/entry_revert_performer_unittest.cc View 7 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc View 29 chunks +29 lines, -28 lines 0 comments Download
M chrome/browser/chromeos/drive/sync/remove_performer_unittest.cc View 9 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/drive/test_util.h View 3 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/drive/test_util.cc View 1 chunk +0 lines, -45 lines 0 comments Download
M chrome/browser/chromeos/drive/write_on_cache_file_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_manager_browsertest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/file_handlers/mime_util_unittest.cc View 6 chunks +6 lines, -25 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc View 2 chunks +1 line, -2 lines 0 comments Download
M content/public/test/test_utils.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M content/public/test/test_utils.cc View 1 2 3 3 chunks +36 lines, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
mtomasz
@hashimoto: PTAL. Thanks.
6 years, 5 months ago (2014-07-10 05:00:24 UTC) #1
hashimoto
I'm not sure if we should put this in content. It's generally discouraged to use ...
6 years, 5 months ago (2014-07-11 05:38:19 UTC) #2
mtomasz
This utility method should be used with TestBrowserThreadBundle. I don't think we have a way ...
6 years, 5 months ago (2014-07-11 06:26:48 UTC) #3
sky
https://codereview.chromium.org/380993002/diff/1/content/public/test/test_utils.cc File content/public/test/test_utils.cc (right): https://codereview.chromium.org/380993002/diff/1/content/public/test/test_utils.cc#newcode157 content/public/test/test_utils.cc:157: TaskObserver task_observer; It seems like you want to know ...
6 years, 5 months ago (2014-07-11 16:37:54 UTC) #4
mtomasz
https://codereview.chromium.org/380993002/diff/1/content/public/test/test_utils.cc File content/public/test/test_utils.cc (right): https://codereview.chromium.org/380993002/diff/1/content/public/test/test_utils.cc#newcode157 content/public/test/test_utils.cc:157: TaskObserver task_observer; On 2014/07/11 16:37:54, sky wrote: > It ...
6 years, 5 months ago (2014-07-14 07:33:57 UTC) #5
sky
LGTM
6 years, 5 months ago (2014-07-14 17:11:19 UTC) #6
mtomasz
On 2014/07/14 17:11:19, sky wrote: > LGTM @hashimoto: PTAL at changes in drive code. Thanks.
6 years, 5 months ago (2014-07-14 23:11:32 UTC) #7
hashimoto
https://codereview.chromium.org/380993002/diff/1/content/public/test/test_utils.cc File content/public/test/test_utils.cc (right): https://codereview.chromium.org/380993002/diff/1/content/public/test/test_utils.cc#newcode157 content/public/test/test_utils.cc:157: TaskObserver task_observer; On 2014/07/14 07:33:57, mtomasz wrote: > On ...
6 years, 5 months ago (2014-07-15 05:17:41 UTC) #8
mtomasz
https://codereview.chromium.org/380993002/diff/1/content/public/test/test_utils.cc File content/public/test/test_utils.cc (right): https://codereview.chromium.org/380993002/diff/1/content/public/test/test_utils.cc#newcode157 content/public/test/test_utils.cc:157: TaskObserver task_observer; On 2014/07/15 05:17:41, hashimoto wrote: > On ...
6 years, 5 months ago (2014-07-15 05:45:30 UTC) #9
hashimoto
https://codereview.chromium.org/380993002/diff/20001/chrome/browser/chromeos/drive/fake_file_system_unittest.cc File chrome/browser/chromeos/drive/fake_file_system_unittest.cc (right): https://codereview.chromium.org/380993002/diff/20001/chrome/browser/chromeos/drive/fake_file_system_unittest.cc#newcode13 chrome/browser/chromeos/drive/fake_file_system_unittest.cc:13: #include "content/public/test/test_utils.h" On 2014/07/15 05:45:29, mtomasz wrote: > On ...
6 years, 5 months ago (2014-07-15 05:49:40 UTC) #10
mtomasz
https://codereview.chromium.org/380993002/diff/20001/chrome/browser/chromeos/drive/fake_file_system_unittest.cc File chrome/browser/chromeos/drive/fake_file_system_unittest.cc (right): https://codereview.chromium.org/380993002/diff/20001/chrome/browser/chromeos/drive/fake_file_system_unittest.cc#newcode13 chrome/browser/chromeos/drive/fake_file_system_unittest.cc:13: #include "content/public/test/test_utils.h" On 2014/07/15 05:49:40, hashimoto wrote: > On ...
6 years, 5 months ago (2014-07-15 05:59:16 UTC) #11
hashimoto
lgtm https://codereview.chromium.org/380993002/diff/20001/chrome/browser/chromeos/drive/fake_file_system_unittest.cc File chrome/browser/chromeos/drive/fake_file_system_unittest.cc (right): https://codereview.chromium.org/380993002/diff/20001/chrome/browser/chromeos/drive/fake_file_system_unittest.cc#newcode13 chrome/browser/chromeos/drive/fake_file_system_unittest.cc:13: #include "content/public/test/test_utils.h" On 2014/07/15 05:59:16, mtomasz wrote: > ...
6 years, 5 months ago (2014-07-15 06:03:44 UTC) #12
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-15 06:04:06 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/380993002/80001
6 years, 5 months ago (2014-07-15 06:05:52 UTC) #14
mtomasz
The CQ bit was unchecked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-15 08:25:31 UTC) #15
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-15 08:25:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/380993002/80001
6 years, 5 months ago (2014-07-15 08:26:58 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-15 18:55:11 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-15 19:30:02 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/170773)
6 years, 5 months ago (2014-07-15 19:30:04 UTC) #20
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-16 02:17:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/380993002/80001
6 years, 5 months ago (2014-07-16 02:21:18 UTC) #22
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 04:32:56 UTC) #23
Message was sent while issue was closed.
Change committed as 283333

Powered by Google App Engine
This is Rietveld 408576698