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

Issue 1281273003: Pre-cache downloads directory path in PathUtils. (Closed)

Created:
5 years, 4 months ago by Peter Wen
Modified:
5 years, 4 months ago
Reviewers:
Yaron, yfriedman
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/4a7568dffab924d3710a68949dca0717bdad3352 Cr-Commit-Position: refs/heads/master@{#342672}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M base/android/java/src/org/chromium/base/PathUtils.java View 3 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Peter Wen
Hi Yaron, I have verified that adding this is okay and does not extend the ...
5 years, 4 months ago (2015-08-10 17:32:40 UTC) #2
Yaron
On 2015/08/10 17:32:40, Peter Wen wrote: > Hi Yaron, > > I have verified that ...
5 years, 4 months ago (2015-08-10 17:37:38 UTC) #3
Peter Wen
On 2015/08/10 17:37:38, Yaron wrote: > On 2015/08/10 17:32:40, Peter Wen wrote: > > Hi ...
5 years, 4 months ago (2015-08-10 17:41:05 UTC) #4
Peter Wen
On 2015/08/10 17:41:05, Peter Wen wrote: > On 2015/08/10 17:37:38, Yaron wrote: > > On ...
5 years, 4 months ago (2015-08-10 17:42:43 UTC) #5
Yaron
On 2015/08/10 17:42:43, Peter Wen wrote: > On 2015/08/10 17:41:05, Peter Wen wrote: > > ...
5 years, 4 months ago (2015-08-10 18:07:10 UTC) #6
Peter Wen
On 2015/08/10 18:07:10, Yaron wrote: > On 2015/08/10 17:42:43, Peter Wen wrote: > > On ...
5 years, 4 months ago (2015-08-10 18:16:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1281273003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1281273003/1
5 years, 4 months ago (2015-08-10 18:16:50 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 4 months ago (2015-08-10 19:30:07 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/4a7568dffab924d3710a68949dca0717bdad3352 Cr-Commit-Position: refs/heads/master@{#342672}
5 years, 4 months ago (2015-08-10 19:30:44 UTC) #11
mimee1
5 years, 3 months ago (2015-09-04 22:29:36 UTC) #12
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/1328043002/ by mimee@google.com.

The reason for reverting is: Revert because it breaks new beta. See
https://code.google.com/p/chromium/issues/detail?id=528377
.

Powered by Google App Engine
This is Rietveld 408576698