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

Unified Diff: chrome/browser/captive_portal/captive_portal_login_detector.cc

Issue 242483003: Move CaptivePortalDetector to src/components/captive_portal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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
Index: chrome/browser/captive_portal/captive_portal_login_detector.cc
diff --git a/chrome/browser/captive_portal/captive_portal_login_detector.cc b/chrome/browser/captive_portal/captive_portal_login_detector.cc
index f4737ca23abc9ba7d7f63c578d5bedfcecd3855c..5b2d13f084dea895cbc450f5a21b7f649c730b33 100644
--- a/chrome/browser/captive_portal/captive_portal_login_detector.cc
+++ b/chrome/browser/captive_portal/captive_portal_login_detector.cc
@@ -5,8 +5,9 @@
#include "chrome/browser/captive_portal/captive_portal_login_detector.h"
#include "chrome/browser/captive_portal/captive_portal_service_factory.h"
+#include "components/captive_portal/captive_portal_types.h"
-namespace captive_portal {
+using captive_portal::CaptivePortalResult;
CaptivePortalLoginDetector::CaptivePortalLoginDetector(
Profile* profile)
@@ -32,9 +33,9 @@ void CaptivePortalLoginDetector::OnStoppedLoading() {
}
void CaptivePortalLoginDetector::OnCaptivePortalResults(
- Result previous_result,
- Result result) {
- if (result != RESULT_BEHIND_CAPTIVE_PORTAL)
+ CaptivePortalResult previous_result,
+ CaptivePortalResult result) {
+ if (result != captive_portal::RESULT_BEHIND_CAPTIVE_PORTAL)
is_login_tab_ = false;
}
@@ -42,5 +43,3 @@ void CaptivePortalLoginDetector::SetIsLoginTab() {
is_login_tab_ = true;
first_login_tab_load_ = true;
}
-
-} // namespace captive_portal
« no previous file with comments | « chrome/browser/captive_portal/captive_portal_login_detector.h ('k') | chrome/browser/captive_portal/captive_portal_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698