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

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

Issue 2674953003: Only generate suggested filenames when actually dragging an image. (Closed)
Patch Set: Maybe? 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 fd0186908321f7565e80a6e561e2791268d01a42..cc8a0dd75c335c3f71ee1364c8b372609ea4d4d0 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;
@@ -707,8 +707,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