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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2155333002: Test for auth dialog appearing during save-page-as. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prevent prompts during save-page-as. Created 4 years, 5 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 | « chrome/test/data/save_page/broken-image.htm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index fb12a9b95407a2d9276c7bbe9279646f22f837d8..a594c0f86ab5961a3867f44f02839082ddec395b 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -1881,6 +1881,7 @@ void ResourceDispatcherHostImpl::BeginSaveFile(const GURL& url,
ResourceRequestInfoImpl* extra_info =
CreateRequestInfo(child_id, render_view_route_id,
render_frame_route_id, false, context);
+ extra_info->set_do_not_prompt_for_login(true);
extra_info->AssociateWithRequest(request.get()); // Request takes ownership.
std::unique_ptr<ResourceHandler> handler(new SaveFileResourceHandler(
« no previous file with comments | « chrome/test/data/save_page/broken-image.htm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698