#include "chrome/browser/ui/search_engine_choice/search_engine_choice_tab_helper.h"
#include "base/check_deref.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engine_choice/search_engine_choice_dialog_service.h"
#include "chrome/browser/search_engine_choice/search_engine_choice_dialog_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "components/search_engines/search_engine_choice/search_engine_choice_utils.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/visibility.h"
#include "content/public/browser/web_contents.h"
#if BUILDFLAG(IS_CHROMEOS)
#include "chrome/browser/profiles/profiles_state.h"
#include "chromeos/components/kiosk/kiosk_utils.h"
#endif
SearchEngineChoiceTabHelper::~SearchEngineChoiceTabHelper() = default;
SearchEngineChoiceTabHelper::SearchEngineChoiceTabHelper(
content::WebContents* web_contents)
: … { … }
bool SearchEngineChoiceTabHelper::IsHelperNeeded() { … }
void SearchEngineChoiceTabHelper::DidFinishNavigation(
content::NavigationHandle* navigation_handle) { … }
void SearchEngineChoiceTabHelper::OnVisibilityChanged(
content::Visibility visibility) { … }
void SearchEngineChoiceTabHelper::MaybeShowDialog() { … }
WEB_CONTENTS_USER_DATA_KEY_IMPL(SearchEngineChoiceTabHelper);