DescriptionPre-cache downloads directory path in PathUtils.
When Chrome tabs are swiped away and user starts Chrome again,
their default downloads directory is requested. This causes a
StrictMode policy violation since it results in a ~60ms disk
read. Thus by adding this call to the initial AsyncTask we
save that time when the directory is requested by native.
This must only be called in the browser process as the sandbox
processes do not need to make the call nor can they make the
call(results in NPE).
BUG=508615
Committed: https://crrev.com/4a7568dffab924d3710a68949dca0717bdad3352
Cr-Commit-Position: refs/heads/master@{#342672}
Patch Set 1 #
Messages
Total messages: 12 (2 generated)
|