#include "chrome/browser/ui/startup/default_browser_prompt/default_browser_infobar_delegate.h"
#include <memory>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/user_metrics.h"
#include "base/task/single_thread_task_runner.h"
#include "base/types/pass_key.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/infobars/confirm_infobar_creator.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/shell_integration.h"
#include "chrome/browser/ui/startup/default_browser_prompt/default_browser_prompt.h"
#include "chrome/browser/ui/startup/default_browser_prompt/default_browser_prompt_manager.h"
#include "chrome/browser/ui/startup/default_browser_prompt/default_browser_prompt_prefs.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/common/pref_names.h"
#include "chrome/grit/branded_strings.h"
#include "chrome/grit/generated_resources.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
#include "components/infobars/core/infobar.h"
#include "components/omnibox/browser/vector_icons.h"
#include "components/prefs/pref_service.h"
#include "components/vector_icons/vector_icons.h"
#include "content/public/common/content_switches.h"
#include "ui/base/l10n/l10n_util.h"
namespace chrome {
infobars::InfoBar* DefaultBrowserInfoBarDelegate::Create(
infobars::ContentInfoBarManager* infobar_manager,
Profile* profile) { … }
DefaultBrowserInfoBarDelegate::DefaultBrowserInfoBarDelegate(
base::PassKey<DefaultBrowserInfoBarDelegate>,
Profile* profile)
: … { … }
DefaultBrowserInfoBarDelegate::~DefaultBrowserInfoBarDelegate() { … }
void DefaultBrowserInfoBarDelegate::AllowExpiry() { … }
infobars::InfoBarDelegate::InfoBarIdentifier
DefaultBrowserInfoBarDelegate::GetIdentifier() const { … }
const gfx::VectorIcon& DefaultBrowserInfoBarDelegate::GetVectorIcon() const { … }
bool DefaultBrowserInfoBarDelegate::ShouldExpire(
const NavigationDetails& details) const { … }
void DefaultBrowserInfoBarDelegate::InfoBarDismissed() { … }
std::u16string DefaultBrowserInfoBarDelegate::GetMessageText() const { … }
int DefaultBrowserInfoBarDelegate::GetButtons() const { … }
std::u16string DefaultBrowserInfoBarDelegate::GetButtonLabel(
InfoBarButton button) const { … }
bool DefaultBrowserInfoBarDelegate::Accept() { … }
}