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

Issue 2714413004: Unload Piex NaCl module when idling. (Closed)

Created:
3 years, 9 months ago by mtomasz
Modified:
3 years, 9 months ago
Reviewers:
yamaguchi, hirono
CC:
chromium-reviews, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yamaguchi+watch_chromium.org, fukino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unload Piex NaCl module when idling. Chrome no longer unloads extensions which have an active NaCl module. This CL fixes this problem by unloading the NaCl module after 3 seconds since the last completed request to open a RAW file. TEST=Tested manually on Chrome with Piex by opening a RAW file in Files app then waiting a few seconds for the image loader to go away. BUG=517741 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2714413004 Cr-Commit-Position: refs/heads/master@{#453897} Committed: https://chromium.googlesource.com/chromium/src/+/8f4fd7677a68e465ba2db9c6c1eb969d0d9c8c73

Patch Set 1 #

Patch Set 2 : Fixed more. #

Total comments: 2

Patch Set 3 : Add tests. #

Total comments: 15

Patch Set 4 : Fix issues + add comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -43 lines) Patch
M chrome/browser/chromeos/file_manager/image_loader_jstest.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/file_manager/image_loader/piex_loader.js View 1 2 3 4 chunks +223 lines, -43 lines 0 comments Download
A ui/file_manager/image_loader/piex_loader_unittest.html View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A ui/file_manager/image_loader/piex_loader_unittest.js View 1 2 3 1 chunk +100 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
mtomasz
@yamaguchi: PTAL. Sadly I don't see an easy way to add tests for that, as ...
3 years, 9 months ago (2017-02-28 10:35:05 UTC) #5
yamaguchi
lgtm https://codereview.chromium.org/2714413004/diff/20001/ui/file_manager/image_loader/piex_loader.js File ui/file_manager/image_loader/piex_loader.js (right): https://codereview.chromium.org/2714413004/diff/20001/ui/file_manager/image_loader/piex_loader.js#newcode110 ui/file_manager/image_loader/piex_loader.js:110: * Idling time before the NaCl module is ...
3 years, 9 months ago (2017-02-28 13:57:38 UTC) #10
mtomasz
@yamaguchi: PTAL one more time as in the end I added tests. Thanks. https://codereview.chromium.org/2714413004/diff/20001/ui/file_manager/image_loader/piex_loader.js File ...
3 years, 9 months ago (2017-03-01 03:56:06 UTC) #11
mtomasz
@hirono: FYI.
3 years, 9 months ago (2017-03-01 03:59:48 UTC) #13
hirono
lgtm. Thank you for fixing this!
3 years, 9 months ago (2017-03-01 04:03:18 UTC) #14
yamaguchi
https://codereview.chromium.org/2714413004/diff/40001/ui/file_manager/image_loader/piex_loader.js File ui/file_manager/image_loader/piex_loader.js (right): https://codereview.chromium.org/2714413004/diff/40001/ui/file_manager/image_loader/piex_loader.js#newcode58 ui/file_manager/image_loader/piex_loader.js:58: * @param {function()=} opt_createModule Creates a NaCl module. How ...
3 years, 9 months ago (2017-03-01 07:28:47 UTC) #19
yamaguchi
Added a couple of comments with questions on the test execution. https://codereview.chromium.org/2714413004/diff/40001/ui/file_manager/image_loader/piex_loader_unittest.js File ui/file_manager/image_loader/piex_loader_unittest.js (right): ...
3 years, 9 months ago (2017-03-01 08:03:59 UTC) #20
mtomasz
https://codereview.chromium.org/2714413004/diff/40001/ui/file_manager/image_loader/piex_loader.js File ui/file_manager/image_loader/piex_loader.js (right): https://codereview.chromium.org/2714413004/diff/40001/ui/file_manager/image_loader/piex_loader.js#newcode58 ui/file_manager/image_loader/piex_loader.js:58: * @param {function()=} opt_createModule Creates a NaCl module. On ...
3 years, 9 months ago (2017-03-01 08:30:51 UTC) #21
yamaguchi
lgtm https://codereview.chromium.org/2714413004/diff/40001/ui/file_manager/image_loader/piex_loader_unittest.js File ui/file_manager/image_loader/piex_loader_unittest.js (right): https://codereview.chromium.org/2714413004/diff/40001/ui/file_manager/image_loader/piex_loader_unittest.js#newcode77 ui/file_manager/image_loader/piex_loader_unittest.js:77: // The NaCl module is not unloaded, as ...
3 years, 9 months ago (2017-03-01 09:04:12 UTC) #22
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/2714413004/60001
3 years, 9 months ago (2017-03-01 09:55:14 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 10:31:19 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/8f4fd7677a68e465ba2db9c6c1eb...

Powered by Google App Engine
This is Rietveld 408576698