Index: content/browser/dom_storage/dom_storage_context_impl.h |
diff --git a/content/browser/dom_storage/dom_storage_context_impl.h b/content/browser/dom_storage/dom_storage_context_impl.h |
index de848dd5de8b1eb666ba18bee72bad27cbd08079..4470df569ecff6d73dde2473b4b5da98172356e0 100644 |
--- a/content/browser/dom_storage/dom_storage_context_impl.h |
+++ b/content/browser/dom_storage/dom_storage_context_impl.h |
@@ -147,7 +147,10 @@ |
const GURL& page_url); |
// May be called on any thread. |
- int64 AllocateSessionId(); |
+ int64 AllocateSessionId() { |
+ return session_id_sequence_.GetNext(); |
+ } |
+ |
std::string AllocatePersistentSessionId(); |
// Must be called on the background thread. |
@@ -204,10 +207,7 @@ |
// We use a 32 bit identifier for per tab storage sessions. |
// At a tab per second, this range is large enough for 68 years. |
- // The offset is to more quickly detect the error condition where |
- // an id related to one context is mistakenly used in another. |
base::AtomicSequenceNumber session_id_sequence_; |
- const int session_id_offset_; |
bool is_shutdown_; |
bool force_keep_session_state_; |