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

Issue 2970653002: Reland of "file_manager: Migrate FILE thread to TaskScheduler" (Closed)

Created:
3 years, 5 months ago by satorux1
Modified:
3 years, 4 months ago
Reviewers:
gab, fukino
CC:
chromium-reviews, extensions-reviews_chromium.org, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of "file_manager: Migrate FILE thread to TaskScheduler" The original patch (crrev.com/483916) was reverted due to an ASAN error. The ASAN error (stack-use-after-return) was caused because the change callback, that references variables on the stack, was run after leaving the test function. This patch solved this problem by flushing tasks in the message loop. Along the way, removed the explicit deletion of FileWatcher. BUG=689520 TEST=new file in Downloads is detected and displayed instantly (file watching is working as before) ALSO_TEST=built unit_tests with ASAN enabled locally to ensure that the ASAN error is gone Review-Url: https://codereview.chromium.org/2970653002 Cr-Commit-Position: refs/heads/master@{#484191} Committed: https://chromium.googlesource.com/chromium/src/+/42ef90a3a71691ea76ab5875d90d969442e2bd25

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -55 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc View 2 chunks +5 lines, -4 lines 1 comment Download
M chrome/browser/chromeos/extensions/file_manager/file_manager_private_apitest.cc View 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_browser_handlers.cc View 3 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_watcher.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_watcher.cc View 5 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_watcher_unittest.cc View 1 3 chunks +24 lines, -23 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
satorux1
PTAL. PS1 is the original patch. PS2 contains the fix.
3 years, 5 months ago (2017-07-04 00:42:45 UTC) #4
fukino
lgtm
3 years, 5 months ago (2017-07-05 04:53:13 UTC) #9
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/2970653002/40001
3 years, 5 months ago (2017-07-05 04:55:19 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:40001) as https://chromium.googlesource.com/chromium/src/+/42ef90a3a71691ea76ab5875d90d969442e2bd25
3 years, 5 months ago (2017-07-05 05:25:50 UTC) #14
gab
https://codereview.chromium.org/2970653002/diff/40001/chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc File chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc (right): https://codereview.chromium.org/2970653002/diff/40001/chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc#newcode311 chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc:311: content::RunAllPendingInMessageLoop(content::BrowserThread::FILE); This should also have been replaced by a ...
3 years, 4 months ago (2017-08-07 20:28:57 UTC) #16
gab
On 2017/08/07 20:28:57, gab wrote: > https://codereview.chromium.org/2970653002/diff/40001/chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc > File > chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc > (right): > > ...
3 years, 4 months ago (2017-08-14 21:27:39 UTC) #17
satorux1
3 years, 4 months ago (2017-08-15 08:14:06 UTC) #18
Message was sent while issue was closed.
On 2017/08/14 21:27:39, gab wrote:
> On 2017/08/07 20:28:57, gab wrote:
> >
>
https://codereview.chromium.org/2970653002/diff/40001/chrome/browser/chromeos...
> > File
> >
>
chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc
> > (right):
> > 
> >
>
https://codereview.chromium.org/2970653002/diff/40001/chrome/browser/chromeos...
> >
>
chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api_test.cc:311:
> > content::RunAllPendingInMessageLoop(content::BrowserThread::FILE);
> > This should also have been replaced by a TaskScheduler::FlushForTesting()?
> > 
> > (and the tests passing is suspicious...)
> 
> @satorux: ping ^^^

thank you for catching this. i'll have a look tomorrow.

Powered by Google App Engine
This is Rietveld 408576698