@@ -117,6 +117,7 @@ import timber.log.Timber
117117import java.io.File
118118import java.util.*
119119import java.util.concurrent.TimeUnit
120+ import javax.inject.Provider
120121import javax.inject.Singleton
121122
122123class BrowserTabViewModel (
@@ -1843,36 +1844,36 @@ class BrowserTabViewModelFactoryModule {
18431844 @Singleton
18441845 @IntoSet
18451846 fun provideBrowserTabViewModelFactory (
1846- statisticsUpdater : StatisticsUpdater ,
1847- queryUrlConverter : QueryUrlConverter ,
1848- duckDuckGoUrlDetector : DuckDuckGoUrlDetector ,
1849- siteFactory : SiteFactory ,
1850- tabRepository : TabRepository ,
1851- userWhitelistDao : UserWhitelistDao ,
1852- networkLeaderboardDao : NetworkLeaderboardDao ,
1853- bookmarksDao : BookmarksDao ,
1854- fireproofWebsiteRepository : FireproofWebsiteRepository ,
1855- locationPermissionsRepository : LocationPermissionsRepository ,
1856- geoLocationPermissions : GeoLocationPermissions ,
1857- navigationAwareLoginDetector : NavigationAwareLoginDetector ,
1858- autoCompleteApi : AutoCompleteApi ,
1859- appSettingsPreferencesStore : SettingsDataStore ,
1860- longPressHandler : LongPressHandler ,
1861- webViewSessionStorage : WebViewSessionStorage ,
1862- specialUrlDetector : SpecialUrlDetector ,
1863- faviconManager : FaviconManager ,
1864- addToHomeCapabilityDetector : AddToHomeCapabilityDetector ,
1865- ctaViewModel : CtaViewModel ,
1866- searchCountDao : SearchCountDao ,
1867- pixel : Pixel ,
1847+ statisticsUpdater : Provider < StatisticsUpdater > ,
1848+ queryUrlConverter : Provider < QueryUrlConverter > ,
1849+ duckDuckGoUrlDetector : Provider < DuckDuckGoUrlDetector > ,
1850+ siteFactory : Provider < SiteFactory > ,
1851+ tabRepository : Provider < TabRepository > ,
1852+ userWhitelistDao : Provider < UserWhitelistDao > ,
1853+ networkLeaderboardDao : Provider < NetworkLeaderboardDao > ,
1854+ bookmarksDao : Provider < BookmarksDao > ,
1855+ fireproofWebsiteRepository : Provider < FireproofWebsiteRepository > ,
1856+ locationPermissionsRepository : Provider < LocationPermissionsRepository > ,
1857+ geoLocationPermissions : Provider < GeoLocationPermissions > ,
1858+ navigationAwareLoginDetector : Provider < NavigationAwareLoginDetector > ,
1859+ autoCompleteApi : Provider < AutoCompleteApi > ,
1860+ appSettingsPreferencesStore : Provider < SettingsDataStore > ,
1861+ longPressHandler : Provider < LongPressHandler > ,
1862+ webViewSessionStorage : Provider < WebViewSessionStorage > ,
1863+ specialUrlDetector : Provider < SpecialUrlDetector > ,
1864+ faviconManager : Provider < FaviconManager > ,
1865+ addToHomeCapabilityDetector : Provider < AddToHomeCapabilityDetector > ,
1866+ ctaViewModel : Provider < CtaViewModel > ,
1867+ searchCountDao : Provider < SearchCountDao > ,
1868+ pixel : Provider < Pixel > ,
18681869 dispatchers : DispatcherProvider = DefaultDispatcherProvider (),
1869- userEventsStore : UserEventsStore ,
1870- notificationDao : NotificationDao ,
1871- useOurAppDetector : UseOurAppDetector ,
1872- variantManager : VariantManager ,
1873- fileDownloader : FileDownloader ,
1874- globalPrivacyControl : GlobalPrivacyControl ,
1875- fireproofDialogsEventHandler : FireproofDialogsEventHandler
1870+ userEventsStore : Provider < UserEventsStore > ,
1871+ notificationDao : Provider < NotificationDao > ,
1872+ useOurAppDetector : Provider < UseOurAppDetector > ,
1873+ variantManager : Provider < VariantManager > ,
1874+ fileDownloader : Provider < FileDownloader > ,
1875+ globalPrivacyControl : Provider < GlobalPrivacyControl > ,
1876+ fireproofDialogsEventHandler : Provider < FireproofDialogsEventHandler >
18761877 ): ViewModelFactoryPlugin {
18771878 return BrowserTabViewModelFactory (
18781879 statisticsUpdater,
@@ -1910,41 +1911,41 @@ class BrowserTabViewModelFactoryModule {
19101911}
19111912
19121913private class BrowserTabViewModelFactory (
1913- private val statisticsUpdater : StatisticsUpdater ,
1914- private val queryUrlConverter : OmnibarEntryConverter ,
1915- private val duckDuckGoUrlDetector : DuckDuckGoUrlDetector ,
1916- private val siteFactory : SiteFactory ,
1917- private val tabRepository : TabRepository ,
1918- private val userWhitelistDao : UserWhitelistDao ,
1919- private val networkLeaderboardDao : NetworkLeaderboardDao ,
1920- private val bookmarksDao : BookmarksDao ,
1921- private val fireproofWebsiteRepository : FireproofWebsiteRepository ,
1922- private val locationPermissionsRepository : LocationPermissionsRepository ,
1923- private val geoLocationPermissions : GeoLocationPermissions ,
1924- private val navigationAwareLoginDetector : NavigationAwareLoginDetector ,
1925- private val autoComplete : AutoComplete ,
1926- private val appSettingsPreferencesStore : SettingsDataStore ,
1927- private val longPressHandler : LongPressHandler ,
1928- private val webViewSessionStorage : WebViewSessionStorage ,
1929- private val specialUrlDetector : SpecialUrlDetector ,
1930- private val faviconManager : FaviconManager ,
1931- private val addToHomeCapabilityDetector : AddToHomeCapabilityDetector ,
1932- private val ctaViewModel : CtaViewModel ,
1933- private val searchCountDao : SearchCountDao ,
1934- private val pixel : Pixel ,
1914+ private val statisticsUpdater : Provider < StatisticsUpdater > ,
1915+ private val queryUrlConverter : Provider < QueryUrlConverter > ,
1916+ private val duckDuckGoUrlDetector : Provider < DuckDuckGoUrlDetector > ,
1917+ private val siteFactory : Provider < SiteFactory > ,
1918+ private val tabRepository : Provider < TabRepository > ,
1919+ private val userWhitelistDao : Provider < UserWhitelistDao > ,
1920+ private val networkLeaderboardDao : Provider < NetworkLeaderboardDao > ,
1921+ private val bookmarksDao : Provider < BookmarksDao > ,
1922+ private val fireproofWebsiteRepository : Provider < FireproofWebsiteRepository > ,
1923+ private val locationPermissionsRepository : Provider < LocationPermissionsRepository > ,
1924+ private val geoLocationPermissions : Provider < GeoLocationPermissions > ,
1925+ private val navigationAwareLoginDetector : Provider < NavigationAwareLoginDetector > ,
1926+ private val autoComplete : Provider < AutoCompleteApi > ,
1927+ private val appSettingsPreferencesStore : Provider < SettingsDataStore > ,
1928+ private val longPressHandler : Provider < LongPressHandler > ,
1929+ private val webViewSessionStorage : Provider < WebViewSessionStorage > ,
1930+ private val specialUrlDetector : Provider < SpecialUrlDetector > ,
1931+ private val faviconManager : Provider < FaviconManager > ,
1932+ private val addToHomeCapabilityDetector : Provider < AddToHomeCapabilityDetector > ,
1933+ private val ctaViewModel : Provider < CtaViewModel > ,
1934+ private val searchCountDao : Provider < SearchCountDao > ,
1935+ private val pixel : Provider < Pixel > ,
19351936 private val dispatchers : DispatcherProvider = DefaultDispatcherProvider (),
1936- private val userEventsStore : UserEventsStore ,
1937- private val notificationDao : NotificationDao ,
1938- private val useOurAppDetector : UseOurAppDetector ,
1939- private val variantManager : VariantManager ,
1940- private val fileDownloader : FileDownloader ,
1941- private val globalPrivacyControl : GlobalPrivacyControl ,
1942- private val fireproofDialogsEventHandler : FireproofDialogsEventHandler
1937+ private val userEventsStore : Provider < UserEventsStore > ,
1938+ private val notificationDao : Provider < NotificationDao > ,
1939+ private val useOurAppDetector : Provider < UseOurAppDetector > ,
1940+ private val variantManager : Provider < VariantManager > ,
1941+ private val fileDownloader : Provider < FileDownloader > ,
1942+ private val globalPrivacyControl : Provider < GlobalPrivacyControl > ,
1943+ private val fireproofDialogsEventHandler : Provider < FireproofDialogsEventHandler >
19431944) : ViewModelFactoryPlugin {
19441945 override fun <T : ViewModel ?> create (modelClass : Class <T >): T ? {
19451946 with (modelClass) {
19461947 return when {
1947- isAssignableFrom(BrowserTabViewModel ::class .java) -> BrowserTabViewModel (statisticsUpdater, queryUrlConverter, duckDuckGoUrlDetector, siteFactory, tabRepository, userWhitelistDao, networkLeaderboardDao, bookmarksDao, fireproofWebsiteRepository, locationPermissionsRepository, geoLocationPermissions, navigationAwareLoginDetector, autoComplete, appSettingsPreferencesStore, longPressHandler, webViewSessionStorage, specialUrlDetector, faviconManager, addToHomeCapabilityDetector, ctaViewModel, searchCountDao, pixel, dispatchers, userEventsStore, notificationDao, useOurAppDetector, variantManager, fileDownloader, globalPrivacyControl, fireproofDialogsEventHandler) as T
1948+ isAssignableFrom(BrowserTabViewModel ::class .java) -> BrowserTabViewModel (statisticsUpdater.get() , queryUrlConverter.get() , duckDuckGoUrlDetector.get() , siteFactory.get() , tabRepository.get() , userWhitelistDao.get() , networkLeaderboardDao.get() , bookmarksDao.get() , fireproofWebsiteRepository.get() , locationPermissionsRepository.get() , geoLocationPermissions.get() , navigationAwareLoginDetector.get() , autoComplete.get() , appSettingsPreferencesStore.get() , longPressHandler.get() , webViewSessionStorage.get() , specialUrlDetector.get() , faviconManager.get() , addToHomeCapabilityDetector.get() , ctaViewModel.get() , searchCountDao.get() , pixel.get() , dispatchers, userEventsStore.get() , notificationDao.get() , useOurAppDetector.get() , variantManager.get() , fileDownloader.get() , globalPrivacyControl.get() , fireproofDialogsEventHandler.get() ) as T
19481949 else -> null
19491950 }
19501951 }
0 commit comments