Skip to content

Commit 775031c

Browse files
committed
Chromium 132 build fixes
1 parent 26b183d commit 775031c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ios/app/brave_core_main.mm

+7-7
Original file line numberDiff line numberDiff line change
@@ -590,15 +590,15 @@ - (CWVWebViewConfiguration*)nonPersistentWebViewConfiguration {
590590
// The incognito BrowserState should be closed when the last incognito tab is
591591
// closed (i.e. if there are other incognito tabs open in another Scene, the
592592
// BrowserState must not be destroyed).
593-
- (BOOL)shouldDestroyAndRebuildIncognitoBrowserState {
594-
return _main_profile->HasOffTheRecordChromeBrowserState();
593+
- (BOOL)shouldDestroyAndRebuildIncognitoProfile {
594+
return _main_profile->HasOffTheRecordProfile();
595595
}
596596

597597
// Matches lastIncognitoTabClosed from Chrome's SceneController
598598
- (void)notifyLastPrivateTabClosed {
599599
// If no other window has incognito tab, then destroy and rebuild the
600600
// BrowserState. Otherwise, just do the state transition animation.
601-
if ([self shouldDestroyAndRebuildIncognitoBrowserState]) {
601+
if ([self shouldDestroyAndRebuildIncognitoProfile]) {
602602
// Incognito browser state cannot be deleted before all the requests are
603603
// deleted. Queue empty task on IO thread and destroy the BrowserState
604604
// when the task has executed, again verifying that no incognito tabs are
@@ -608,8 +608,8 @@ - (void)notifyLastPrivateTabClosed {
608608
// the cleanup shouldn't proceed.
609609

610610
auto cleanup = ^{
611-
if ([self shouldDestroyAndRebuildIncognitoBrowserState]) {
612-
[self destroyAndRebuildIncognitoBrowserState];
611+
if ([self shouldDestroyAndRebuildIncognitoProfile]) {
612+
[self destroyAndRebuildIncognitoProfile];
613613
}
614614
};
615615

@@ -639,8 +639,8 @@ - (void)cleanupBrowser:(Browser*)browser {
639639
}
640640
}
641641

642-
- (void)destroyAndRebuildIncognitoBrowserState {
643-
DCHECK(_main_profile->HasOffTheRecordChromeBrowserState());
642+
- (void)destroyAndRebuildIncognitoProfile {
643+
DCHECK(_main_profile->HasOffTheRecordProfile());
644644
_nonPersistentWebViewConfiguration = nil;
645645

646646
ProfileIOS* otrProfile = _main_profile->GetOffTheRecordProfile();

0 commit comments

Comments
 (0)