Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: ios/chrome/browser/tabs/tab_model.mm

Issue 2807063006: [ios] Reduce access to private //ios/web API. (Closed)
Patch Set: Call -recordStateInHistory in CRWWebController -wasHidden.' Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/chrome/browser/tabs/tab_model_selected_tab_observer.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/chrome/browser/tabs/tab_model_selected_tab_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698