blob: 426b5bd592669b98df511bc4068ded33b1ce4cdd [file] [log] [blame]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/actor/actor_util.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "chrome/browser/actor/actor_features.h"
#include "chrome/browser/actor/actor_switches.h"
namespace actor {
bool IsActorSafetyCheckDisabled() {
return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableActorSafetyChecks);
}
bool IsNavigationGatingEnabled() {
return !IsActorSafetyCheckDisabled() &&
base::FeatureList::IsEnabled(kGlicCrossOriginNavigationGating);
}
} // namespace actor