#include "chrome/browser/extensions/theme_installed_infobar_delegate.h"
#include <stddef.h>
#include <string>
#include <utility>
#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/infobars/confirm_infobar_creator.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/grit/generated_resources.h"
#include "components/infobars/content/content_infobar_manager.h"
#include "components/infobars/core/infobar.h"
#include "extensions/browser/extension_system.h"
#include "ui/base/l10n/l10n_util.h"
void ThemeInstalledInfoBarDelegate::CreateForLastActiveTab(
Profile* profile,
const std::string& theme_name,
const std::string& theme_id,
std::unique_ptr<ThemeService::ThemeReinstaller> prev_theme_reinstaller) { … }
void ThemeInstalledInfoBarDelegate::Create(
infobars::ContentInfoBarManager* infobar_manager,
ThemeService* theme_service,
const std::string& theme_name,
const std::string& theme_id,
std::unique_ptr<ThemeService::ThemeReinstaller> prev_theme_reinstaller) { … }
ThemeInstalledInfoBarDelegate::ThemeInstalledInfoBarDelegate(
ThemeService* theme_service,
const std::string& theme_name,
const std::string& theme_id,
std::unique_ptr<ThemeService::ThemeReinstaller> prev_theme_reinstaller)
: … { … }
ThemeInstalledInfoBarDelegate::~ThemeInstalledInfoBarDelegate() { … }
infobars::InfoBarDelegate::InfoBarIdentifier
ThemeInstalledInfoBarDelegate::GetIdentifier() const { … }
const gfx::VectorIcon& ThemeInstalledInfoBarDelegate::GetVectorIcon() const { … }
ThemeInstalledInfoBarDelegate*
ThemeInstalledInfoBarDelegate::AsThemePreviewInfobarDelegate() { … }
std::u16string ThemeInstalledInfoBarDelegate::GetMessageText() const { … }
int ThemeInstalledInfoBarDelegate::GetButtons() const { … }
std::u16string ThemeInstalledInfoBarDelegate::GetButtonLabel(
InfoBarButton button) const { … }
bool ThemeInstalledInfoBarDelegate::Cancel() { … }
void ThemeInstalledInfoBarDelegate::OnThemeChanged() { … }