Pre-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

Review URL: https://codereview.chromium.org/1281273003

Cr-Commit-Position: refs/heads/master@{#342672}


CrOS-Libchrome-Original-Commit: 4a7568dffab924d3710a68949dca0717bdad3352
1 file changed
tree: dd1f5bb7ddec3bfd71059af7216acdece492a3c1
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/