| 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 f3dd565fa6ec1abed5e46fb4a22da16a3dcff4be..3e0ed5a7eaf932ba296f7d3d309dadba45e4d18c 100644
|
| --- a/ios/chrome/browser/tabs/tab_model.mm
|
| +++ b/ios/chrome/browser/tabs/tab_model.mm
|
| @@ -692,10 +692,6 @@ void CleanCertificatePolicyCache(
|
| #pragma mark - Private methods
|
|
|
| - (SessionIOS*)sessionForSaving {
|
| - // Background tabs will already have their state preserved, but not the
|
| - // fg tab. Do it now.
|
| - [self.currentTab recordStateInHistory];
|
| -
|
| // Build the array of sessions. Copy the session objects as the saving will
|
| // be done on a separate thread.
|
| // TODO(crbug.com/661986): This could get expensive especially since this
|
| @@ -727,9 +723,6 @@ void CleanCertificatePolicyCache(
|
| int oldCount = _webStateList->count();
|
| DCHECK_GE(oldCount, 0);
|
|
|
| - if (persistState && self.currentTab)
|
| - [self.currentTab recordStateInHistory];
|
| -
|
| web::WebState::CreateParams createParams(_browserState);
|
| DeserializeWebStateList(
|
| _webStateList.get(), window,
|
|
|