diff options
author | jvoung <jvoung@chromium.org> | 2014-08-28 14:46:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-28 21:48:15 +0000 |
commit | eeba9846656053be6dc90a6f7bf164e5695b5a22 (patch) | |
tree | 67536b6dfb18e83b66c03bfa22b27642c87521a4 /components/nacl | |
parent | a3a60e44f3c0a39962453cf0402162a3b48a854b (diff) | |
download | chromium_src-eeba9846656053be6dc90a6f7bf164e5695b5a22.zip chromium_src-eeba9846656053be6dc90a6f7bf164e5695b5a22.tar.gz chromium_src-eeba9846656053be6dc90a6f7bf164e5695b5a22.tar.bz2 |
Set RequestContextObject for PNaCl pexe fetches, to fix On-Demand update.
Add more checks to test to detect that the resource type of
the URL request is indeed OBJECT.
Would like to get this merged to the M38 branch.
BUG=401755
Review URL: https://codereview.chromium.org/471233003
Cr-Commit-Position: refs/heads/master@{#292470}
Diffstat (limited to 'components/nacl')
-rw-r--r-- | components/nacl/renderer/ppb_nacl_private_impl.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc index 5bc480b..bdca3b8 100644 --- a/components/nacl/renderer/ppb_nacl_private_impl.cc +++ b/components/nacl/renderer/ppb_nacl_private_impl.cc @@ -1666,6 +1666,7 @@ void StreamPexe(PP_Instance instance, url_request.addHTTPHeaderField( blink::WebString::fromUTF8("Accept"), blink::WebString::fromUTF8("application/x-pnacl, */*")); + url_request.setRequestContext(blink::WebURLRequest::RequestContextObject); downloader->Load(url_request); } |