OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/chromeos/net/network_portal_detector_impl.h" | 5 #include "chrome/browser/chromeos/net/network_portal_detector_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
16 #include "chromeos/dbus/dbus_thread_manager.h" | 16 #include "chromeos/dbus/dbus_thread_manager.h" |
17 #include "chromeos/dbus/shill_profile_client.h" | 17 #include "chromeos/dbus/shill_profile_client.h" |
18 #include "chromeos/device_event_log.h" | |
19 #include "chromeos/login/login_state.h" | 18 #include "chromeos/login/login_state.h" |
20 #include "chromeos/network/network_state.h" | 19 #include "chromeos/network/network_state.h" |
21 #include "chromeos/network/network_state_handler.h" | 20 #include "chromeos/network/network_state_handler.h" |
| 21 #include "components/device_event_log/device_event_log.h" |
22 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
23 #include "content/public/common/content_switches.h" | 23 #include "content/public/common/content_switches.h" |
24 #include "net/http/http_status_code.h" | 24 #include "net/http/http_status_code.h" |
25 #include "third_party/cros_system_api/dbus/service_constants.h" | 25 #include "third_party/cros_system_api/dbus/service_constants.h" |
26 | 26 |
27 using base::StringPrintf; | 27 using base::StringPrintf; |
28 using captive_portal::CaptivePortalDetector; | 28 using captive_portal::CaptivePortalDetector; |
29 | 29 |
30 namespace chromeos { | 30 namespace chromeos { |
31 | 31 |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 } | 639 } |
640 | 640 |
641 void NetworkPortalDetectorImpl::ResetStrategyAndCounters() { | 641 void NetworkPortalDetectorImpl::ResetStrategyAndCounters() { |
642 last_detection_result_ = CAPTIVE_PORTAL_STATUS_UNKNOWN; | 642 last_detection_result_ = CAPTIVE_PORTAL_STATUS_UNKNOWN; |
643 same_detection_result_count_ = 0; | 643 same_detection_result_count_ = 0; |
644 no_response_result_count_ = 0; | 644 no_response_result_count_ = 0; |
645 strategy_->Reset(); | 645 strategy_->Reset(); |
646 } | 646 } |
647 | 647 |
648 } // namespace chromeos | 648 } // namespace chromeos |
OLD | NEW |