#include "chrome/browser/ui/extensions/settings_overridden_params_providers.h"
#include "base/ranges/algorithm.h"
#include "base/strings/utf_string_conversions.h"
#include "build/branding_buildflags.h"
#include "chrome/browser/extensions/extension_web_ui.h"
#include "chrome/browser/extensions/settings_api_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/ui/extensions/controlled_home_bubble_delegate.h"
#include "chrome/browser/ui/extensions/settings_api_bubble_helpers.h"
#include "chrome/common/extensions/manifest_handlers/settings_overrides_handler.h"
#include "chrome/common/url_constants.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "components/google/core/common/google_util.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_service.h"
#include "components/url_formatter/elide_url.h"
#include "components/vector_icons/vector_icons.h"
#include "content/public/browser/browser_url_handler.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_set.h"
#include "ui/base/l10n/l10n_util.h"
namespace settings_overridden_params {
namespace {
size_t GetNumberOfExtensionsThatOverrideSearch(Profile* profile) { … }
bool IsGoogleSearch(const TemplateURL& template_url,
const TemplateURLService& template_url_service) { … }
bool GoogleIsDefaultSearchProvider(Profile* profile) { … }
struct SecondarySearchInfo { … };
SecondarySearchInfo GetSecondarySearchInfo(Profile* profile) { … }
}
std::optional<ExtensionSettingsOverriddenDialog::Params> GetNtpOverriddenParams(
Profile* profile) { … }
std::optional<ExtensionSettingsOverriddenDialog::Params>
GetSearchOverriddenParams(Profile* profile) { … }
}