diff options
author | thestig <thestig@chromium.org> | 2015-04-29 19:06:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-30 02:06:30 +0000 |
commit | a9ceb724a56a866f4fca58736cd861d2414e4f6c (patch) | |
tree | 933c37ef4343fe347e4520de39d14e77fd4add22 /pdf | |
parent | c327b48f8ef537bb7fe407d4aa2532a4947c2923 (diff) | |
download | chromium_src-a9ceb724a56a866f4fca58736cd861d2414e4f6c.zip chromium_src-a9ceb724a56a866f4fca58736cd861d2414e4f6c.tar.gz chromium_src-a9ceb724a56a866f4fca58736cd861d2414e4f6c.tar.bz2 |
PDF: Set the referrer in DocumentLoader::GetRequest().
BUG=479518
Review URL: https://codereview.chromium.org/1115603002
Cr-Commit-Position: refs/heads/master@{#327641}
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/document_loader.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pdf/document_loader.cc b/pdf/document_loader.cc index b2628a6..9918b12 100644 --- a/pdf/document_loader.cc +++ b/pdf/document_loader.cc @@ -274,9 +274,10 @@ void DocumentLoader::DownloadPendingRequests() { pp::URLRequestInfo DocumentLoader::GetRequest(uint32 position, uint32 size) const { pp::URLRequestInfo request(client_->GetPluginInstance()); - request.SetURL(url_.c_str()); + request.SetURL(url_); request.SetMethod("GET"); request.SetFollowRedirects(true); + request.SetCustomReferrerURL(url_); const size_t kBufSize = 100; char buf[kBufSize]; |