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

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

Issue 2755823002: Moved |openedByDOM| to WebState's CreateParams and public interface. (Closed)
Patch Set: test fix & removed include Created 3 years, 9 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/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 a2c3d25602405e28da6bf5474dae3e0472004a99..bd92956c640dbe0b53f216fb8d8546361f1ab215 100644
--- a/ios/web/public/crw_session_storage.mm
+++ b/ios/web/public/crw_session_storage.mm
@@ -16,7 +16,7 @@
NSString* const kCertificatePolicyManagerKey = @"certificatePolicyManager";
NSString* const kCurrentNavigationIndexKey = @"currentNavigationIndex";
NSString* const kItemStoragesKey = @"entries";
-NSString* const kOpenedByDOMKey = @"openedByDOM";
+NSString* const kHasOpenerKey = @"openedByDOM";
Eugene But (OOO till 7-30) 2017/03/18 00:33:30 Optional nit: do you want to deprecate this key in
kkhorimoto 2017/03/20 22:39:20 Acknowledged.
NSString* const kPreviousNavigationIndexKey = @"previousNavigationIndex";
}
@@ -29,7 +29,7 @@ @interface CRWSessionStorage () {
@implementation CRWSessionStorage
-@synthesize openedByDOM = _openedByDOM;
+@synthesize hasOpener = _hasOpener;
@synthesize currentNavigationIndex = _currentNavigationIndex;
@synthesize previousNavigationIndex = _previousNavigationIndex;
@synthesize itemStorages = _itemStorages;
@@ -51,7 +51,7 @@ - (void)setSerializableUserData:
- (instancetype)initWithCoder:(nonnull NSCoder*)decoder {
self = [super init];
if (self) {
- _openedByDOM = [decoder decodeBoolForKey:kOpenedByDOMKey];
+ _hasOpener = [decoder decodeBoolForKey:kHasOpenerKey];
_currentNavigationIndex =
[decoder decodeIntForKey:kCurrentNavigationIndexKey];
_previousNavigationIndex =
@@ -74,7 +74,7 @@ - (instancetype)initWithCoder:(nonnull NSCoder*)decoder {
}
- (void)encodeWithCoder:(NSCoder*)coder {
- [coder encodeBool:self.openedByDOM forKey:kOpenedByDOMKey];
+ [coder encodeBool:self.hasOpener forKey:kHasOpenerKey];
[coder encodeInt:self.currentNavigationIndex
forKey:kCurrentNavigationIndexKey];
[coder encodeInt:self.previousNavigationIndex

Powered by Google App Engine
This is Rietveld 408576698