OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 const char kReasonNetworkChanged[] = "network changed"; | 82 const char kReasonNetworkChanged[] = "network changed"; |
83 const char kReasonProxyChanged[] = "proxy changed"; | 83 const char kReasonProxyChanged[] = "proxy changed"; |
84 const char kReasonPortalDetected[] = "portal detected"; | 84 const char kReasonPortalDetected[] = "portal detected"; |
85 | 85 |
86 // The Task posted to PostTaskAndReply in StartClearingDnsCache on the IO | 86 // The Task posted to PostTaskAndReply in StartClearingDnsCache on the IO |
87 // thread. | 87 // thread. |
88 void ClearDnsCache(IOThread* io_thread) { | 88 void ClearDnsCache(IOThread* io_thread) { |
89 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 89 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
90 if (browser_shutdown::IsTryingToQuit()) | 90 if (browser_shutdown::IsTryingToQuit()) |
91 return; | 91 return; |
| 92 |
| 93 io_thread->ClearHostCache(); |
92 } | 94 } |
93 | 95 |
94 } // namespace | 96 } // namespace |
95 | 97 |
96 namespace chromeos { | 98 namespace chromeos { |
97 | 99 |
98 namespace { | 100 namespace { |
99 | 101 |
100 // Updates params dictionary passed to the auth extension with related | 102 // Updates params dictionary passed to the auth extension with related |
101 // preferences from CrosSettings. | 103 // preferences from CrosSettings. |
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1104 !dns_clear_task_running_ && | 1106 !dns_clear_task_running_ && |
1105 network_state_informer_->is_online()) { | 1107 network_state_informer_->is_online()) { |
1106 gaia_silent_load_ = true; | 1108 gaia_silent_load_ = true; |
1107 gaia_silent_load_network_ = | 1109 gaia_silent_load_network_ = |
1108 network_state_informer_->active_network_service_path(); | 1110 network_state_informer_->active_network_service_path(); |
1109 LoadAuthExtension(true, true, false); | 1111 LoadAuthExtension(true, true, false); |
1110 } | 1112 } |
1111 } | 1113 } |
1112 | 1114 |
1113 } // namespace chromeos | 1115 } // namespace chromeos |
OLD | NEW |