Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(974)

Unified Diff: chrome/browser/chromeos/net/network_portal_detector_impl.h

Issue 2923343004: cros: no active portal check when successfully behind portal (Closed)
Patch Set: steven's feedback Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/net/network_portal_detector_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/net/network_portal_detector_impl.h
diff --git a/chrome/browser/chromeos/net/network_portal_detector_impl.h b/chrome/browser/chromeos/net/network_portal_detector_impl.h
index 042f6bd87f2df3bdeea695e0dd67592fed03ff22..c28afefd7577232dc4a2a393d36cd2cc2dc95bfd 100644
--- a/chrome/browser/chromeos/net/network_portal_detector_impl.h
+++ b/chrome/browser/chromeos/net/network_portal_detector_impl.h
@@ -84,6 +84,8 @@ class NetworkPortalDetectorImpl : public NetworkPortalDetector,
STATE_PORTAL_CHECK_PENDING,
// Portal check is in progress.
STATE_CHECKING_FOR_PORTAL,
+ // No portal check when successfully behind portal.
+ STATE_BEHIND_PORTAL_IDLE,
};
struct DetectionAttemptCompletedReport {
@@ -170,6 +172,9 @@ class NetworkPortalDetectorImpl : public NetworkPortalDetector,
bool is_checking_for_portal() const {
return state_ == STATE_CHECKING_FOR_PORTAL;
}
+ bool is_behind_portal_idle() const {
+ return state_ == STATE_BEHIND_PORTAL_IDLE;
+ }
int same_detection_result_count_for_testing() const {
return same_detection_result_count_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/net/network_portal_detector_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698