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

Unified Diff: webkit/port/bindings/v8/extensions/Playback.cpp

Issue 40132: Refactor v8 extensions to make registration avoid having to use ChromiumBridg... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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: webkit/port/bindings/v8/extensions/Playback.cpp
===================================================================
--- webkit/port/bindings/v8/extensions/Playback.cpp (revision 10914)
+++ webkit/port/bindings/v8/extensions/Playback.cpp (working copy)
@@ -1,31 +0,0 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "Playback.h"
-
-namespace WebCore {
-
-const char* kPlaybackExtensionName = "v8/PlaybackMode";
-
-v8::Extension* PlaybackExtension::Get() {
- v8::Extension* extension = new v8::Extension(
- kPlaybackExtensionName,
- "(function () {"
- " var orig_date = Date;"
- " Math.random = function() {"
- " return 0.5;"
- " };"
- " Date.__proto__.now = function() {"
- " return new orig_date(1204251968254);"
- " };"
- " Date = function() {"
- " return Date.now();"
- " };"
- "})()");
- return extension;
-}
-
-}
-

Powered by Google App Engine
This is Rietveld 408576698