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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 2844353003: Use net::HttpContentTypeDisposition in blink (Closed)
Patch Set: fix Created 3 years, 8 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
Index: third_party/WebKit/Source/core/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index d7ba41c24132cdaa211c341f26ef04d69ac5a41b..0c0131327ef2b175dafd74af2beb8ed23cbbe33b 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -507,8 +507,8 @@ bool DocumentLoader::ShouldContinueForResponse() const {
return false;
}
- if (GetContentDispositionType(response_.HttpHeaderField(
- HTTPNames::Content_Disposition)) == kContentDispositionAttachment) {
+ if (IsContentDispositionAttachment(
+ response_.HttpHeaderField(HTTPNames::Content_Disposition))) {
// The server wants us to download instead of replacing the page contents.
// Downloading is handled by the embedder, but we still get the initial
// response so that we can ignore it and clean up properly.

Powered by Google App Engine
This is Rietveld 408576698