OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h" | 5 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/shell/browser/shell_login_dialog.h" | 8 #include "content/shell/browser/shell_login_dialog.h" |
9 #include "content/shell/common/shell_switches.h" | 9 #include "content/shell/common/shell_switches.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 net::AuthChallengeInfo* auth_info, net::URLRequest* request) { | 21 net::AuthChallengeInfo* auth_info, net::URLRequest* request) { |
22 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) | 22 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) |
23 return NULL; | 23 return NULL; |
24 | 24 |
25 if (!login_request_callback_.is_null()) { | 25 if (!login_request_callback_.is_null()) { |
26 login_request_callback_.Run(); | 26 login_request_callback_.Run(); |
27 login_request_callback_.Reset(); | 27 login_request_callback_.Reset(); |
28 return NULL; | 28 return NULL; |
29 } | 29 } |
30 | 30 |
31 #if !defined(OS_MACOSX) && !defined(TOOLKIT_GTK) | 31 #if !defined(OS_MACOSX) |
32 // TODO: implement ShellLoginDialog for other platforms, drop this #if | 32 // TODO: implement ShellLoginDialog for other platforms, drop this #if |
33 return NULL; | 33 return NULL; |
34 #else | 34 #else |
35 return new ShellLoginDialog(auth_info, request); | 35 return new ShellLoginDialog(auth_info, request); |
36 #endif | 36 #endif |
37 } | 37 } |
38 | 38 |
39 } // namespace content | 39 } // namespace content |
OLD | NEW |