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

Unified Diff: webkit/support/gc_extension.cc

Issue 22723005: Remove gc extension from webkit/support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: put gc_extension in content/shell/renderer Created 7 years, 4 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 | « webkit/support/gc_extension.h ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/gc_extension.cc
diff --git a/webkit/support/gc_extension.cc b/webkit/support/gc_extension.cc
deleted file mode 100644
index bc57ad5623191c3bf6ae911b7e6d539a4a2ea6c8..0000000000000000000000000000000000000000
--- a/webkit/support/gc_extension.cc
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2011 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 "webkit/support/gc_extension.h"
-
-#include "v8/include/v8.h"
-
-const char kGCExtensionName[] = "v8/GCController";
-
-namespace extensions_v8 {
-
-// static
-v8::Extension* GCExtension::Get() {
- v8::Extension* extension = new v8::Extension(
- kGCExtensionName,
- "(function () {"
- " var v8_gc;"
- " if (gc) v8_gc = gc;"
- " GCController = new Object();"
- " GCController.collect ="
- " function() {if (v8_gc) v8_gc(); };"
- " GCController.minorCollect ="
- " function() {if (v8_gc) v8_gc(true); };"
- " })();");
- return extension;
-}
-
-} // namespace extensions_v8
« no previous file with comments | « webkit/support/gc_extension.h ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698