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_login_dialog.h" | 5 #include "content/shell/browser/shell_login_dialog.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "build/build_config.h" |
10 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
11 #include "content/public/browser/resource_dispatcher_host.h" | 12 #include "content/public/browser/resource_dispatcher_host.h" |
12 #include "net/base/auth.h" | 13 #include "net/base/auth.h" |
13 #include "net/url_request/url_request.h" | 14 #include "net/url_request/url_request.h" |
14 #include "ui/gfx/text_elider.h" | 15 #include "ui/gfx/text_elider.h" |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 | 18 |
18 ShellLoginDialog::ShellLoginDialog( | 19 ShellLoginDialog::ShellLoginDialog( |
19 net::AuthChallengeInfo* auth_info, | 20 net::AuthChallengeInfo* auth_info, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 else | 99 else |
99 request_->CancelAuth(); | 100 request_->CancelAuth(); |
100 ResourceDispatcherHost::Get()->ClearLoginDelegateForRequest(request_); | 101 ResourceDispatcherHost::Get()->ClearLoginDelegateForRequest(request_); |
101 | 102 |
102 BrowserThread::PostTask( | 103 BrowserThread::PostTask( |
103 BrowserThread::UI, FROM_HERE, | 104 BrowserThread::UI, FROM_HERE, |
104 base::Bind(&ShellLoginDialog::PlatformCleanUp, this)); | 105 base::Bind(&ShellLoginDialog::PlatformCleanUp, this)); |
105 } | 106 } |
106 | 107 |
107 } // namespace content | 108 } // namespace content |
OLD | NEW |