From f4ed0143ca6fa68850a9824b06f7c78978b11c2f Mon Sep 17 00:00:00 2001 From: mkarolin Date: Tue, 8 Oct 2024 10:01:03 -0400 Subject: [PATCH] [iOS] HttpsUpgradeServiceFactory::GetForBrowserState was removed. Chromium change: https://source.chromium.org/chromium/chromium/src/+/e4f2e2ba1f825f208b2fb3c841cd9812dbf0e478 commit e4f2e2ba1f825f208b2fb3c841cd9812dbf0e478 Author: Mark Cogan Date: Mon Sep 30 13:04:33 2024 +0000 [iOS] Updates various files under ios/chrome/browser/h* and m* This CL replaces: * ChromeBrowserState => ProfileIOS * GetForBrowserState => GetForProfile at call sites. * GetBrowserState => GetProfile * browser_state, browserState => profile * GetOriginal(Chrome)BrowserState => GetOriginalProfile * HasOffTheRecordChromeBrowserState => HasOffTheRecordProfile * GetOffTheRecordChromeBrowserState => GetOffTheRecordProfile * DestroyOffTheRecordChromeBrowserState => DestroyOffTheRecordProfile * CreateAndInitializeForBrowserState => CreateAndInitializeForProfile * GetCurrentIncognitoBrowserState => GetCurrentIncognitoProfile Test case names using "BrowserState" are updated. Instances of GetForBrowserState that are no longer used are removed. web::BrowserState code is not updated. Bug: 365530626, 365530662, 365528542 --- .../api/https_upgrades/https_upgrade_service_factory.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/browser/api/https_upgrades/https_upgrade_service_factory.mm b/ios/browser/api/https_upgrades/https_upgrade_service_factory.mm index aa2523c756e..e37de245ad0 100644 --- a/ios/browser/api/https_upgrades/https_upgrade_service_factory.mm +++ b/ios/browser/api/https_upgrades/https_upgrade_service_factory.mm @@ -12,7 +12,8 @@ @implementation BraveHttpsUpgradeServiceFactory + (nullable id)serviceForBrowserState:(ChromeBrowserState*)browserState { - auto* service = HttpsUpgradeServiceFactory::GetForBrowserState(browserState); + ProfileIOS* profile = ProfileIOS::FromBrowserState(browserState); + auto* service = HttpsUpgradeServiceFactory::GetForProfile(profile); if (!service) { return nil; }