commit | f7ccd135a45965517dc06d330776e9560202b271 | [log] [tgz] |
---|---|---|
author | Torne (Richard Coles) <torne@google.com> | Fri Mar 25 16:45:26 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 25 16:45:26 2022 |
tree | e8eddb393f3fa52bed7933003b8e6e0f3815263a | |
parent | c7dc2aac4a32cc5fd7d05fba88bf0b7d2fe78803 [diff] |
webview: close streams in NetworkFetcherTask. Use try-with-resources to ensure streams are closed properly in NetworkFetcherTask; some of these were missing. Also increase the buffer size to 8KiB; 1KiB is smaller than a page which isn't great for IO. FileUtils.copyStream (which isn't used here because of the JNI progress callback) uses 8KiB. Bug: 1310064 Change-Id: I41d7f72aaa78ffa9eecb1df52a741dd6a99317b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3553279 Auto-Submit: Richard Coles <torne@chromium.org> Reviewed-by: Hazem Ashmawy <hazems@chromium.org> Commit-Queue: Hazem Ashmawy <hazems@chromium.org> Cr-Commit-Position: refs/heads/main@{#985334}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.