| Index: ios/chrome/browser/tabs/tab_model.mm
|
| diff --git a/ios/chrome/browser/tabs/tab_model.mm b/ios/chrome/browser/tabs/tab_model.mm
|
| index 310c4a190e9eabfbffdca09249af53cd9bfa5c49..59558dc28447387c06cd6b179542cc6f9e360903 100644
|
| --- a/ios/chrome/browser/tabs/tab_model.mm
|
| +++ b/ios/chrome/browser/tabs/tab_model.mm
|
| @@ -121,13 +121,11 @@ void CleanCertificatePolicyCache(
|
| // checking the associated Tab tabId (should be removed once the opener
|
| // is passed to the insertTab:atIndex: and replaceTab:withTab: methods).
|
| Tab* GetOpenerForTab(id<NSFastEnumeration> tabs, Tab* tab) {
|
| - NSString* opener_id =
|
| - [tab navigationManager]->GetSessionController().openerId;
|
| - if (!opener_id)
|
| + if (!tab.openerID)
|
| return nullptr;
|
|
|
| for (Tab* currentTab in tabs) {
|
| - if ([opener_id isEqualToString:currentTab.tabId])
|
| + if ([tab.openerID isEqualToString:currentTab.tabId])
|
| return currentTab;
|
| }
|
|
|
|
|