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

Unified Diff: chrome/browser/supervised_user/supervised_user_google_auth_navigation_throttle.cc

Issue 2867833002: NavigationThrottle: allow customization of net::Error when blocking
Patch Set: Add unit tests. Created 3 years, 7 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/supervised_user/supervised_user_google_auth_navigation_throttle.cc
diff --git a/chrome/browser/supervised_user/supervised_user_google_auth_navigation_throttle.cc b/chrome/browser/supervised_user/supervised_user_google_auth_navigation_throttle.cc
index 1931a03bb52b1fa2c54490c780cdf0b71460b6e7..f15f46212c143a9d46b765103ba149dd3eb433ff 100644
--- a/chrome/browser/supervised_user/supervised_user_google_auth_navigation_throttle.cc
+++ b/chrome/browser/supervised_user/supervised_user_google_auth_navigation_throttle.cc
@@ -74,7 +74,7 @@ SupervisedUserGoogleAuthNavigationThrottle::WillStartOrRedirectRequest() {
content::NavigationThrottle::ThrottleCheckResult result =
ShouldProceed(child_account_service_->IsGoogleAuthenticated());
- if (result == content::NavigationThrottle::DEFER) {
+ if (result.action() == content::NavigationThrottle::DEFER) {
google_auth_state_subscription_ =
child_account_service_->ObserveGoogleAuthState(
base::Bind(&SupervisedUserGoogleAuthNavigationThrottle::
@@ -90,7 +90,7 @@ void SupervisedUserGoogleAuthNavigationThrottle::OnGoogleAuthStateChanged(
content::NavigationThrottle::ThrottleCheckResult result =
ShouldProceed(authenticated);
- switch (result) {
+ switch (result.action()) {
case content::NavigationThrottle::PROCEED: {
google_auth_state_subscription_.reset();
navigation_handle()->Resume();

Powered by Google App Engine
This is Rietveld 408576698