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

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

Issue 2755823002: Moved |openedByDOM| to WebState's CreateParams and public interface. (Closed)
Patch Set: . 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
« no previous file with comments | « ios/web/public/crw_session_storage.h ('k') | ios/web/public/test/fakes/test_web_state.h » ('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 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";
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
« no previous file with comments | « ios/web/public/crw_session_storage.h ('k') | ios/web/public/test/fakes/test_web_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698