[iOS] HttpsUpgradeServiceFactory::GetForBrowserState was removed.
Chromium change: https://source.chromium.org/chromium/chromium/src/+/e4f2e2ba1f825f208b2fb3c841cd9812dbf0e478 commit e4f2e2ba1f825f208b2fb3c841cd9812dbf0e478 Author: Mark Cogan <marq@google.com> 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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user