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

Unified Diff: Source/core/workers/SharedWorkerContext.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/SharedWorkerContext.cpp
diff --git a/Source/core/workers/SharedWorkerContext.cpp b/Source/core/workers/SharedWorkerContext.cpp
index c0c2a5718297012a8a11fc6cacb420f735a25c4c..e3352baf872cbb5f4b3bb5a3740e67f3cc2c42f6 100644
--- a/Source/core/workers/SharedWorkerContext.cpp
+++ b/Source/core/workers/SharedWorkerContext.cpp
@@ -37,6 +37,7 @@
#include "core/inspector/ScriptCallStack.h"
#include "core/page/DOMWindow.h"
#include "core/workers/SharedWorkerThread.h"
+#include "wtf/CurrentTime.h"
namespace WebCore {
@@ -56,7 +57,7 @@ PassRefPtr<SharedWorkerContext> SharedWorkerContext::create(const String& name,
}
SharedWorkerContext::SharedWorkerContext(const String& name, const KURL& url, const String& userAgent, PassOwnPtr<GroupSettings> settings, SharedWorkerThread* thread)
- : WorkerContext(url, userAgent, settings, thread, 0)
+ : WorkerContext(url, userAgent, settings, thread, 0, monotonicallyIncreasingTime())
, m_name(name)
{
ScriptWrappable::init(this);

Powered by Google App Engine
This is Rietveld 408576698