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

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: Fix WorkerPerformance IDL 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 8b7f3e3dfac21d53233ba8b46b36b791d8541373..5e7a336c9a0e37417082cf0bee94a00a7d1ae86a 100644
--- a/Source/core/workers/WorkerContext.cpp
+++ b/Source/core/workers/WorkerContext.cpp
@@ -82,7 +82,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)
@@ -92,6 +92,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