| 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/chromeos/login/captive_portal_view.h" | 5 #include "chrome/browser/chromeos/login/captive_portal_view.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/chromeos/cros/cros_library.h" | 8 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 9 #include "chrome/browser/chromeos/cros/network_library.h" | 9 #include "chrome/browser/chromeos/cros/network_library.h" |
| 10 #include "chrome/browser/chromeos/login/captive_portal_window_proxy.h" | 10 #include "chrome/browser/chromeos/login/captive_portal_window_proxy.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 DLOG(INFO) << kCaptivePortalStartURL << " vs " << url.spec(); | 74 DLOG(INFO) << kCaptivePortalStartURL << " vs " << url.spec(); |
| 75 redirected_ = true; | 75 redirected_ = true; |
| 76 proxy_->OnRedirected(); | 76 proxy_->OnRedirected(); |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 | 79 |
| 80 void CaptivePortalView::LoadingStateChanged(content::WebContents* source) { | 80 void CaptivePortalView::LoadingStateChanged(content::WebContents* source) { |
| 81 SimpleWebViewDialog::LoadingStateChanged(source); | 81 SimpleWebViewDialog::LoadingStateChanged(source); |
| 82 // TODO(nkostylev): Fix case of no connectivity, check HTTP code returned. | 82 // TODO(nkostylev): Fix case of no connectivity, check HTTP code returned. |
| 83 // Disable this heuristic as it has false positives. | 83 // Disable this heuristic as it has false positives. |
| 84 // Relying on just flimflam portal check to close dialog is fine. | 84 // Relying on just shill portal check to close dialog is fine. |
| 85 // if (!is_loading && !redirected_) | 85 // if (!is_loading && !redirected_) |
| 86 // proxy_->OnOriginalURLLoaded(); | 86 // proxy_->OnOriginalURLLoaded(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace chromeos | 89 } // namespace chromeos |
| OLD | NEW |