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

Unified Diff: ios/web/public/crw_session_storage.mm

Issue 2722013002: Use custom user data to serialize Tab last visited timestamp. (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « ios/web/public/crw_session_storage.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/crw_session_storage.mm
diff --git a/ios/web/public/crw_session_storage.mm b/ios/web/public/crw_session_storage.mm
index 368fbd62b6e02c905bb54ccbedf19890a06de2a8..a2c3d25602405e28da6bf5474dae3e0472004a99 100644
--- a/ios/web/public/crw_session_storage.mm
+++ b/ios/web/public/crw_session_storage.mm
@@ -16,7 +16,6 @@ namespace {
NSString* const kCertificatePolicyManagerKey = @"certificatePolicyManager";
NSString* const kCurrentNavigationIndexKey = @"currentNavigationIndex";
NSString* const kItemStoragesKey = @"entries";
-NSString* const kLastVisitedTimestampKey = @"lastVisitedTimestamp";
NSString* const kOpenedByDOMKey = @"openedByDOM";
NSString* const kPreviousNavigationIndexKey = @"previousNavigationIndex";
}
@@ -33,7 +32,6 @@ NSString* const kPreviousNavigationIndexKey = @"previousNavigationIndex";
@synthesize openedByDOM = _openedByDOM;
@synthesize currentNavigationIndex = _currentNavigationIndex;
@synthesize previousNavigationIndex = _previousNavigationIndex;
-@synthesize lastVisitedTimestamp = _lastVisitedTimestamp;
@synthesize itemStorages = _itemStorages;
@synthesize sessionCertificatePolicyManager = _sessionCertificatePolicyManager;
@@ -58,8 +56,6 @@ NSString* const kPreviousNavigationIndexKey = @"previousNavigationIndex";
[decoder decodeIntForKey:kCurrentNavigationIndexKey];
_previousNavigationIndex =
[decoder decodeIntForKey:kPreviousNavigationIndexKey];
- _lastVisitedTimestamp =
- [decoder decodeDoubleForKey:kLastVisitedTimestampKey];
_itemStorages = [[NSMutableArray alloc]
initWithArray:[decoder decodeObjectForKey:kItemStoragesKey]];
// Prior to M34, 0 was used as "no index" instead of -1; adjust for that.
@@ -83,8 +79,6 @@ NSString* const kPreviousNavigationIndexKey = @"previousNavigationIndex";
forKey:kCurrentNavigationIndexKey];
[coder encodeInt:self.previousNavigationIndex
forKey:kPreviousNavigationIndexKey];
- [coder encodeDouble:self.lastVisitedTimestamp
- forKey:kLastVisitedTimestampKey];
[coder encodeObject:self.itemStorages forKey:kItemStoragesKey];
[coder encodeObject:self.sessionCertificatePolicyManager
forKey:kCertificatePolicyManagerKey];
« no previous file with comments | « ios/web/public/crw_session_storage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698