blob: 370d08761c5711f966df9c52c489f5d62cf76bb0 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/webui/untrusted_web_ui_controller.h"
#include "content/public/browser/web_ui.h"
#include "content/public/common/bindings_policy.h"
namespace ui {
UntrustedWebUIController::UntrustedWebUIController(content::WebUI* web_ui)
: content::WebUIController(web_ui) {
// UntrustedWebUIController should never enable bindings.
web_ui->SetBindings(content::BINDINGS_POLICY_NONE);
}
UntrustedWebUIController::~UntrustedWebUIController() = default;
} // namespace ui