Index: content/renderer/gin_browsertest.cc |
diff --git a/content/renderer/gin_browsertest.cc b/content/renderer/gin_browsertest.cc |
index 3f69fbb8ab8a558384a7acd26b53dffe4385ac34..a4e2c10bd3082d91f35cd4dae4b073c4510e7f78 100644 |
--- a/content/renderer/gin_browsertest.cc |
+++ b/content/renderer/gin_browsertest.cc |
@@ -37,14 +37,6 @@ class TestGinObject : public gin::Wrappable<TestGinObject> { |
gin::WrapperInfo TestGinObject::kWrapperInfo = { gin::kEmbedderNativeGin }; |
-void RegisterTemplates(v8::Isolate* isolate) { |
- gin::PerIsolateData* data = gin::PerIsolateData::From(isolate); |
- |
- v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(isolate); |
- templ->SetInternalFieldCount(gin::kNumberOfInternalFields); |
- data->SetObjectTemplate(&TestGinObject::kWrapperInfo, templ); |
-} |
- |
class GinBrowserTest : public RenderViewTest { |
public: |
GinBrowserTest() {} |
@@ -75,8 +67,6 @@ TEST_F(GinBrowserTest, GinAndGarbageCollection) { |
v8::Context::Scope context_scope( |
view_->GetWebView()->mainFrame()->mainWorldScriptContext()); |
- RegisterTemplates(isolate); |
- |
// We create the object inside a scope so it's not kept alive by a handle |
// on the stack. |
TestGinObject::Create(isolate, &alive); |