webview: set a webview-specific code cache size.
The HTTP cache in WebView is limited to 20MB but the generated code caches were being left at the default size automatically calculated based on disk space, which is typically much larger. Since the source file needs to be present in the HTTP cache for code cache entries to be used, it's not useful for the code cache to be so big. Set the code cache size to 10MB; there are two code caches, so this will result in a ~40MB cache dir in total; 2x as much as before the code cache was implemented. This avoids apps complaining that WebView is using hundreds of megabytes of space in their cache dir (causing users to complain about the amount of space the app is using). Bug: 1126485 Change-Id: I44666c0ff745b5f4c43f5776c6177368ee4a6e48 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404565Reviewed-by:Mythri Alle <mythria@chromium.org> Reviewed-by:
Anna Malova <amalova@chromium.org> Commit-Queue: Richard Coles <torne@chromium.org> Cr-Commit-Position: refs/heads/master@{#806175}
Showing
Please register or sign in to comment