summaryrefslogtreecommitdiffstats
path: root/webkit/dom_storage
diff options
context:
space:
mode:
authormarja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-26 10:04:31 +0000
committermarja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-26 10:04:31 +0000
commit406001572ce58c408384832bd8f60be574968b66 (patch)
tree326b03263d9d91166198ab617740edf628766ca6 /webkit/dom_storage
parentc7f2e954cb2c8b3776055e4ca95577af9c679303 (diff)
downloadchromium_src-406001572ce58c408384832bd8f60be574968b66.zip
chromium_src-406001572ce58c408384832bd8f60be574968b66.tar.gz
chromium_src-406001572ce58c408384832bd8f60be574968b66.tar.bz2
Fix: Prerendering was confusing SessionService to not save sessionStorage.
BUG=149905 Review URL: https://chromiumcodereview.appspot.com/10969012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/dom_storage')
-rw-r--r--webkit/dom_storage/dom_storage_session.cc4
-rw-r--r--webkit/dom_storage/dom_storage_session.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/webkit/dom_storage/dom_storage_session.cc b/webkit/dom_storage/dom_storage_session.cc
index 57aedfa..76b58a4 100644
--- a/webkit/dom_storage/dom_storage_session.cc
+++ b/webkit/dom_storage/dom_storage_session.cc
@@ -40,6 +40,10 @@ void DomStorageSession::SetShouldPersist(bool should_persist) {
should_persist_ = should_persist;
}
+bool DomStorageSession::should_persist() const {
+ return should_persist_;
+}
+
bool DomStorageSession::IsFromContext(DomStorageContext* context) {
return context_.get() == context;
}
diff --git a/webkit/dom_storage/dom_storage_session.h b/webkit/dom_storage/dom_storage_session.h
index db4d88a..1f5294e 100644
--- a/webkit/dom_storage/dom_storage_session.h
+++ b/webkit/dom_storage/dom_storage_session.h
@@ -34,6 +34,7 @@ class DomStorageSession
return persistent_namespace_id_;
}
void SetShouldPersist(bool should_persist);
+ bool should_persist() const;
bool IsFromContext(DomStorageContext* context);
DomStorageSession* Clone();