Index: content/shell/shell_resource_dispatcher_host_delegate.cc |
=================================================================== |
--- content/shell/shell_resource_dispatcher_host_delegate.cc (revision 148205) |
+++ content/shell/shell_resource_dispatcher_host_delegate.cc (working copy) |
@@ -24,6 +24,12 @@ |
ResourceDispatcherHostLoginDelegate* |
ShellResourceDispatcherHostDelegate::CreateLoginDelegate( |
net::AuthChallengeInfo* auth_info, net::URLRequest* request) { |
+ if (!login_request_callback_.is_null()) { |
+ login_request_callback_.Run(); |
+ login_request_callback_.Reset(); |
+ return NULL; |
+ } |
+ |
#if !defined(OS_MACOSX) |
// TODO: implement ShellLoginDialog for other platforms, drop this #if |
return NULL; |