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

Issue 263683002: Set file tokens for NaCl main nexe if available to enable validation caching. (Closed)

Created:
6 years, 7 months ago by jvoung (off chromium)
Modified:
6 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Set file tokens for NaCl main nexe if available to enable validation caching. Also enable mmap'ing the main nexe, which may help a bit in subsequent runs as well (first run the validator needs page in all of the text anyway). pnacl-llc.nexe, etc will be handled separately: https://codereview.chromium.org/224803002/ TEST=NaClBrowserTestVcacheExtension.ValidationCacheOfMainNexe BUG=https://code.google.com/p/nativeclient/issues/detail?id=3421 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272429

Patch Set 1 #

Total comments: 9

Patch Set 2 : use or #

Patch Set 3 : other form #

Patch Set 4 : Add a test and rebase to use new API #

Patch Set 5 : no longer need include deps #

Patch Set 6 : cleanups #

Patch Set 7 : rebase #

Patch Set 8 : test non-extension case #

Patch Set 9 : fix virtual #

Patch Set 10 : clear tokens too #

Total comments: 6

Patch Set 11 : timestamp #

Patch Set 12 : concat filepath literal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -44 lines) Patch
M chrome/test/base/uma_histogram_helper.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/base/uma_histogram_helper.cc View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.html View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +24 lines, -0 lines 0 comments Download
A + chrome/test/data/nacl/extension_validation_cache/manifest.json View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/test/data/nacl/nacl_test_data.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest_uma.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +58 lines, -0 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest_util.h View 1 2 3 4 5 6 2 chunks +12 lines, -1 line 0 comments Download
M chrome/test/nacl/nacl_browsertest_util.cc View 1 2 3 4 5 6 4 chunks +24 lines, -2 lines 0 comments Download
M components/nacl/browser/nacl_browser.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M components/nacl/browser/nacl_browser.cc View 1 2 3 4 5 6 2 chunks +6 lines, -10 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M ppapi/api/private/ppb_nacl_private.idl View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -1 line 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -2 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +19 lines, -2 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
jvoung (off chromium)
6 years, 7 months ago (2014-04-30 18:10:37 UTC) #1
teravest
https://codereview.chromium.org/263683002/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc File ppapi/native_client/src/trusted/plugin/plugin.cc (right): https://codereview.chromium.org/263683002/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc#newcode498 ppapi/native_client/src/trusted/plugin/plugin.cc:498: if (tmp_info.file_token.lo != 0 && tmp_info.file_token.hi != 0) { ...
6 years, 7 months ago (2014-04-30 20:12:54 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/263683002/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc File ppapi/native_client/src/trusted/plugin/plugin.cc (right): https://codereview.chromium.org/263683002/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc#newcode498 ppapi/native_client/src/trusted/plugin/plugin.cc:498: if (tmp_info.file_token.lo != 0 && tmp_info.file_token.hi != 0) { ...
6 years, 7 months ago (2014-04-30 21:49:02 UTC) #3
teravest
https://codereview.chromium.org/263683002/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc File ppapi/native_client/src/trusted/plugin/plugin.cc (right): https://codereview.chromium.org/263683002/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc#newcode498 ppapi/native_client/src/trusted/plugin/plugin.cc:498: if (tmp_info.file_token.lo != 0 && tmp_info.file_token.hi != 0) { ...
6 years, 7 months ago (2014-05-02 15:07:24 UTC) #4
jvoung (off chromium)
https://codereview.chromium.org/263683002/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc File ppapi/native_client/src/trusted/plugin/plugin.cc (right): https://codereview.chromium.org/263683002/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc#newcode498 ppapi/native_client/src/trusted/plugin/plugin.cc:498: if (tmp_info.file_token.lo != 0 && tmp_info.file_token.hi != 0) { ...
6 years, 7 months ago (2014-05-02 15:33:23 UTC) #5
Nick Bray (chromium)
LGTM https://codereview.chromium.org/263683002/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc File ppapi/native_client/src/trusted/plugin/plugin.cc (right): https://codereview.chromium.org/263683002/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc#newcode498 ppapi/native_client/src/trusted/plugin/plugin.cc:498: if (tmp_info.file_token.lo != 0 && tmp_info.file_token.hi != 0) ...
6 years, 7 months ago (2014-05-02 18:18:19 UTC) #6
jvoung (off chromium)
Thanks Nick -- and I keep forgetting that your OWNERS entry under NaCl is w/ ...
6 years, 7 months ago (2014-05-02 19:26:15 UTC) #7
teravest
lgtm
6 years, 7 months ago (2014-05-07 14:15:22 UTC) #8
jvoung (off chromium)
Thanks for the earlier review -- I ended up rebasing and adding a test using ...
6 years, 7 months ago (2014-05-20 16:12:41 UTC) #9
teravest
https://codereview.chromium.org/263683002/diff/220001/chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js File chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js (right): https://codereview.chromium.org/263683002/diff/220001/chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js#newcode1 chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js:1: function create(manifest_url) { Do you need a copyright statement ...
6 years, 7 months ago (2014-05-21 16:49:42 UTC) #10
jvoung (off chromium)
https://codereview.chromium.org/263683002/diff/220001/chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js File chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js (right): https://codereview.chromium.org/263683002/diff/220001/chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js#newcode1 chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js:1: function create(manifest_url) { On 2014/05/21 16:49:42, teravest wrote: > ...
6 years, 7 months ago (2014-05-21 21:10:56 UTC) #11
chromium-reviews
On Wed, May 21, 2014 at 3:10 PM, <jvoung@chromium.org> wrote: > > https://codereview.chromium.org/263683002/diff/220001/chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js > File ...
6 years, 7 months ago (2014-05-21 21:16:16 UTC) #12
chromium-reviews
lgtm On Wed, May 21, 2014 at 3:15 PM, Justin TerAvest <teravest@google.com> wrote: > On ...
6 years, 7 months ago (2014-05-21 21:16:40 UTC) #13
jvoung (off chromium)
Thanks! +sky for chrome/test/base/uma_histogram_helper OWNERS
6 years, 7 months ago (2014-05-21 22:15:48 UTC) #14
sky
LGTM
6 years, 7 months ago (2014-05-21 22:59:08 UTC) #15
jvoung (off chromium)
The CQ bit was checked by jvoung@chromium.org
6 years, 7 months ago (2014-05-22 17:32:14 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/263683002/240001
6 years, 7 months ago (2014-05-22 17:34:40 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 20:55:12 UTC) #18
jvoung (off chromium)
The CQ bit was checked by jvoung@chromium.org
6 years, 7 months ago (2014-05-22 20:56:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/263683002/260001
6 years, 7 months ago (2014-05-22 20:57:50 UTC) #20
commit-bot: I haz the power
6 years, 7 months ago (2014-05-23 07:26:10 UTC) #21
Message was sent while issue was closed.
Change committed as 272429

Powered by Google App Engine
This is Rietveld 408576698