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

Unified Diff: Source/core/workers/WorkerContext.cpp

Issue 16434011: Support performance.now() in workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 6 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: Source/core/workers/WorkerContext.cpp
diff --git a/Source/core/workers/WorkerContext.cpp b/Source/core/workers/WorkerContext.cpp
index 65ab257b21f8d75e64dddf1f1a0b21c3f5f29712..e6b5010c19fa374b334b2f89a7594a65cde5b354 100644
--- a/Source/core/workers/WorkerContext.cpp
+++ b/Source/core/workers/WorkerContext.cpp
@@ -81,7 +81,7 @@ public:
virtual bool isCleanupTask() const { return true; }
};
-WorkerContext::WorkerContext(const KURL& url, const String& userAgent, PassOwnPtr<GroupSettings> settings, WorkerThread* thread, PassRefPtr<SecurityOrigin> topOrigin)
+WorkerContext::WorkerContext(const KURL& url, const String& userAgent, PassOwnPtr<GroupSettings> settings, WorkerThread* thread, PassRefPtr<SecurityOrigin> topOrigin, double timeOrigin)
: m_url(url)
, m_userAgent(userAgent)
, m_groupSettings(settings)
@@ -91,6 +91,7 @@ WorkerContext::WorkerContext(const KURL& url, const String& userAgent, PassOwnPt
, m_closing(false)
, m_eventQueue(WorkerEventQueue::create(this))
, m_topOrigin(topOrigin)
+ , m_timeOrigin(timeOrigin)
{
ScriptWrappable::init(this);
setSecurityOrigin(SecurityOrigin::create(url));

Powered by Google App Engine
This is Rietveld 408576698