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

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

Issue 2687353003: Created SerializableUserDataManager. (Closed)
Patch Set: Eugene's comments Created 3 years, 10 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
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 6b405c20a727c8dc61fad8d3d6c1b578ca30a169..a49cd809de28efeae94513c1f000834b8444c66e 100644
--- a/ios/chrome/browser/tabs/tab_model.mm
+++ b/ios/chrome/browser/tabs/tab_model.mm
@@ -809,7 +809,7 @@ - (SessionWindowIOS*)windowForSavingSession {
for (Tab* tab in self) {
web::WebState* webState = tab.webState;
DCHECK(webState);
- [window addSerializedSession:webState->BuildSerializedNavigationManager()];
+ [window addSerializedSessionStorage:webState->BuildSessionStorage()];
}
window.selectedIndex = [self indexOfTab:_currentTab];
return window;
@@ -963,7 +963,7 @@ - (BOOL)restoreSessionWindow:(SessionWindowIOS*)window
scoped_refptr<web::CertificatePolicyCache> policyCache =
web::BrowserState::GetCertificatePolicyCache(_browserState);
- for (CRWNavigationManagerStorage* session in sessions) {
+ for (CRWSessionStorage* session in sessions) {
std::unique_ptr<web::WebState> webState =
web::WebState::Create(params, session);
DCHECK_EQ(webState->GetBrowserState(), _browserState);
« no previous file with comments | « ios/chrome/browser/sessions/session_window_unittest.mm ('k') | ios/chrome/browser/tabs/tab_model_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698