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

Unified Diff: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc

Issue 1386523002: browser test for kAccountsPrefAllowNewUser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable_restrictive_proxy_check_for_test_ Created 5 years, 2 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 | « chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
index 92adcb52bd35ca703e52db9366338ebebe8c34d7..1c036315434ce2a61c79e59554563a58b0f8ec6e 100644
--- a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
@@ -917,10 +917,17 @@ SigninScreenHandlerDelegate* GaiaScreenHandler::Delegate() {
}
bool GaiaScreenHandler::IsRestrictiveProxy() const {
+ if (disable_restrictive_proxy_check_for_test_)
+ return false;
+
return captive_portal_status_ ==
NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_PORTAL ||
captive_portal_status_ ==
NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_OFFLINE;
}
+void GaiaScreenHandler::DisableRestrictiveProxyCheckForTest() {
+ disable_restrictive_proxy_check_for_test_ = true;
+}
+
} // namespace chromeos
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698