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

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

Issue 2674953003: Only generate suggested filenames when actually dragging an image. (Closed)
Patch Set: rebase Created 3 years, 10 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 613a0e43d29c297520445322580490d01dafa2d4..d4e6c1962a2b861416eaeb346897669cf28003d8 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -440,7 +440,7 @@ void DocumentLoader::cancelLoadAfterCSPDenied(
m_request.setURL(blockedURL);
m_redirectChain.pop_back();
appendRedirect(blockedURL);
- m_response = ResourceResponse(blockedURL, "text/html", 0, nullAtom, String());
+ m_response = ResourceResponse(blockedURL, "text/html", 0, nullAtom);
finishedLoading(monotonicallyIncreasingTime());
return;
@@ -709,8 +709,7 @@ bool DocumentLoader::maybeLoadEmpty() {
if (m_request.url().isEmpty() &&
!frameLoader().stateMachine()->creatingInitialEmptyDocument())
m_request.setURL(blankURL());
- m_response =
- ResourceResponse(m_request.url(), "text/html", 0, nullAtom, String());
+ m_response = ResourceResponse(m_request.url(), "text/html", 0, nullAtom);
finishedLoading(monotonicallyIncreasingTime());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698