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

Unified Diff: pdf/document_loader.cc

Issue 301223004: Fix loading PDFs with no HTTP response headers in OOP PDF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pdf/out_of_process_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/document_loader.cc
diff --git a/pdf/document_loader.cc b/pdf/document_loader.cc
index 0be459e85dc8b67211ad48d224b82d9620895673..ba5a3afd0baaf9c6b258845e812d2003941996cf 100644
--- a/pdf/document_loader.cc
+++ b/pdf/document_loader.cc
@@ -79,8 +79,7 @@ bool DocumentLoader::Init(const pp::URLLoader& loader,
!EndsWith(type, "/x-pdf", false) &&
!EndsWith(type, "/*", false) &&
!EndsWith(type, "/acrobat", false) &&
- !EndsWith(type, "/unknown", false) &&
- !StartsWithASCII(url, "blob:", false)) {
+ !EndsWith(type, "/unknown", false)) {
return false;
}
if (StartsWithASCII(disposition, "attachment", false)) {
« no previous file with comments | « no previous file | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698