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

Unified Diff: Source/core/frame/Frame.cpp

Issue 296893009: Remove frameID hack for history. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | « Source/core/frame/Frame.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/Frame.cpp
diff --git a/Source/core/frame/Frame.cpp b/Source/core/frame/Frame.cpp
index 3a04fd8abc4d67bfa6be13d5e2509a86c1f3adc1..9b6e8e4a893978c18b147f8a7e981715c2e5ec69 100644
--- a/Source/core/frame/Frame.cpp
+++ b/Source/core/frame/Frame.cpp
@@ -54,24 +54,11 @@ namespace WebCore {
using namespace HTMLNames;
-namespace {
-
-int64_t generateFrameID()
-{
- // Initialize to the current time to reduce the likelihood of generating
- // identifiers that overlap with those from past/future browser sessions.
- static int64_t next = static_cast<int64_t>(currentTime() * 1000000.0);
- return ++next;
-}
-
-} // namespace
-
DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, frameCounter, ("Frame"));
Frame::Frame(FrameHost* host, HTMLFrameOwnerElement* ownerElement)
: m_host(host)
, m_ownerElement(ownerElement)
- , m_frameID(generateFrameID())
, m_remotePlatformLayer(0)
{
ASSERT(page());
« no previous file with comments | « Source/core/frame/Frame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698