#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/webui/feedback/feedback_ui.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/webui_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/grit/feedback_resources.h"
#include "chrome/grit/feedback_resources_map.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/key_value_pair_viewer_shared_resources.h"
#include "chrome/grit/key_value_pair_viewer_shared_resources_map.h"
#include "components/prefs/pref_service.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_data_source.h"
#include "ui/webui/color_change_listener/color_change_handler.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/arc/arc_util.h"
#include "chromeos/strings/grit/chromeos_strings.h"
#endif
void AddStringResources(content::WebUIDataSource* source,
const Profile* profile) { … }
void CreateAndAddFeedbackHTMLSource(Profile* profile) { … }
FeedbackUI::FeedbackUI(content::WebUI* web_ui) : … { … }
FeedbackUI::~FeedbackUI() = default;
bool FeedbackUI::IsFeedbackEnabled(Profile* profile) { … }
void FeedbackUI::BindInterface(
mojo::PendingReceiver<color_change_listener::mojom::PageHandler> receiver) { … }
FeedbackUIConfig::FeedbackUIConfig()
: … { … }
bool FeedbackUIConfig::IsWebUIEnabled(
content::BrowserContext* browser_context) { … }
WEB_UI_CONTROLLER_TYPE_IMPL(FeedbackUI)