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

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

Issue 2720613005: Refactor serialisation of openerId & openerNavigationIndex. (Closed)
Patch Set: Fix CRWSessionController's initializer comment. 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') | ios/web/public/test/web_test_with_web_state.mm » ('j') | 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 8c5b22541592830402c2013a6a17fd8adc5d1fc8..5f37736545ebe9b83df80510f2303d2fe96c5f8d 100644
--- a/ios/web/public/crw_session_storage.mm
+++ b/ios/web/public/crw_session_storage.mm
@@ -17,9 +17,7 @@ NSString* const kCertificatePolicyManagerKey = @"certificatePolicyManager";
NSString* const kCurrentNavigationIndexKey = @"currentNavigationIndex";
NSString* const kItemStoragesKey = @"entries";
NSString* const kLastVisitedTimestampKey = @"lastVisitedTimestamp";
-NSString* const kOpenerIDKey = @"openerId";
NSString* const kOpenedByDOMKey = @"openedByDOM";
-NSString* const kOpenerNavigationIndexKey = @"openerNavigationIndex";
NSString* const kPreviousNavigationIndexKey = @"previousNavigationIndex";
NSString* const kWindowNameKey = @"windowName";
}
@@ -33,9 +31,7 @@ NSString* const kWindowNameKey = @"windowName";
@implementation CRWSessionStorage
-@synthesize openerID = _openerID;
@synthesize openedByDOM = _openedByDOM;
-@synthesize openerNavigationIndex = _openerNavigationIndex;
@synthesize windowName = _windowName;
@synthesize currentNavigationIndex = _currentNavigationIndex;
@synthesize previousNavigationIndex = _previousNavigationIndex;
@@ -60,10 +56,7 @@ NSString* const kWindowNameKey = @"windowName";
self = [super init];
if (self) {
_windowName = [[decoder decodeObjectForKey:kWindowNameKey] copy];
- _openerID = [[decoder decodeObjectForKey:kOpenerIDKey] copy];
_openedByDOM = [decoder decodeBoolForKey:kOpenedByDOMKey];
- _openerNavigationIndex =
- [decoder decodeIntForKey:kOpenerNavigationIndexKey];
_currentNavigationIndex =
[decoder decodeIntForKey:kCurrentNavigationIndexKey];
_previousNavigationIndex =
@@ -88,9 +81,7 @@ NSString* const kWindowNameKey = @"windowName";
}
- (void)encodeWithCoder:(NSCoder*)coder {
- [coder encodeObject:self.openerID forKey:kOpenerIDKey];
[coder encodeBool:self.openedByDOM forKey:kOpenedByDOMKey];
- [coder encodeInt:self.openerNavigationIndex forKey:kOpenerNavigationIndexKey];
[coder encodeObject:self.windowName forKey:kWindowNameKey];
[coder encodeInt:self.currentNavigationIndex
forKey:kCurrentNavigationIndexKey];
« no previous file with comments | « ios/web/public/crw_session_storage.h ('k') | ios/web/public/test/web_test_with_web_state.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698