#include "chrome/browser/ui/webui/managed_ui_handler.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/values.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/policy/profile_policy_connector.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/managed_ui.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/webui_url_constants.h"
#include "components/supervised_user/core/common/pref_names.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_data_source.h"
namespace {
policy::PolicyService* GetProfilePolicyService(Profile* profile) { … }
}
void ManagedUIHandler::Initialize(content::WebUI* web_ui,
content::WebUIDataSource* source) { … }
void ManagedUIHandler::InitializeInternal(content::WebUI* web_ui,
content::WebUIDataSource* source,
Profile* profile) { … }
ManagedUIHandler::ManagedUIHandler(Profile* profile)
: … { … }
ManagedUIHandler::~ManagedUIHandler() { … }
void ManagedUIHandler::RegisterMessages() { … }
void ManagedUIHandler::HandleObserveManagedUI(
const base::Value::List& ) { … }
void ManagedUIHandler::OnJavascriptDisallowed() { … }
void ManagedUIHandler::OnPolicyUpdated(const policy::PolicyNamespace& ns,
const policy::PolicyMap& previous,
const policy::PolicyMap& current) { … }
void ManagedUIHandler::AddObservers() { … }
void ManagedUIHandler::RemoveObservers() { … }
base::Value::Dict ManagedUIHandler::GetDataSourceUpdate() const { … }
void ManagedUIHandler::NotifyIfChanged() { … }