| // Copyright 2024 The Chromium Authors | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #include "chrome/browser/android/tab_features_android.h" | |
| #include "chrome/browser/sync/sessions/sync_sessions_router_tab_helper.h" | |
| #include "chrome/browser/sync/sessions/sync_sessions_web_contents_router_factory.h" | |
| #include "chrome/browser/translate/chrome_translate_client.h" | |
| #include "components/favicon/content/content_favicon_driver.h" | |
| TabFeaturesAndroid::TabFeaturesAndroid(content::WebContents* web_contents, | |
| Profile* profile) { | |
| sync_sessions_router_ = | |
| std::make_unique<sync_sessions::SyncSessionsRouterTabHelper>( | |
| web_contents, | |
| sync_sessions::SyncSessionsWebContentsRouterFactory::GetForProfile( | |
| profile), | |
| ChromeTranslateClient::FromWebContents(web_contents), | |
| favicon::ContentFaviconDriver::FromWebContents(web_contents)); | |
| } | |
| TabFeaturesAndroid::~TabFeaturesAndroid() = default; |