| // Copyright 2023 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #import "ios/chrome/browser/supervised_user/supervised_user_error.h" |
| |
| #if !defined(__has_feature) || !__has_feature(objc_arc) |
| #error "This file requires ARC support." |
| #endif |
| |
| const NSErrorDomain kSupervisedUserInterstitialErrorDomain = |
| @"com.google.chrome.supervised_user.show_intestitial"; |
| |
| const NSInteger kSupervisedUserInterstitialErrorCode = -1000; |
| |
| web::WebStatePolicyDecider::PolicyDecision |
| CreateSupervisedUserInterstitialErrorDecision() { |
| return web::WebStatePolicyDecider::PolicyDecision::CancelAndDisplayError( |
| [NSError errorWithDomain:kSupervisedUserInterstitialErrorDomain |
| code:kSupervisedUserInterstitialErrorCode |
| userInfo:nil]); |
| } |