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

Unified Diff: content/shell/renderer/layout_test/test_plugin_placeholder.cc

Issue 1161923004: Reland: Plugin Placeholders: Refactor for platforms that don't support plugins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove some enable_plugins that are no longer needed Created 5 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
« no previous file with comments | « content/shell/renderer/layout_test/test_plugin_placeholder.h ('k') | gin/wrappable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/test_plugin_placeholder.cc
diff --git a/content/shell/renderer/layout_test/test_plugin_placeholder.cc b/content/shell/renderer/layout_test/test_plugin_placeholder.cc
deleted file mode 100644
index 5b5a07199930892c75d0eee31f3ab87694de7a72..0000000000000000000000000000000000000000
--- a/content/shell/renderer/layout_test/test_plugin_placeholder.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2015 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 "content/shell/renderer/layout_test/test_plugin_placeholder.h"
-
-#include "gin/handle.h"
-#include "third_party/WebKit/public/web/WebKit.h"
-
-namespace content {
-
-TestPluginPlaceholder::TestPluginPlaceholder(
- RenderFrame* render_frame,
- blink::WebLocalFrame* frame,
- const blink::WebPluginParams& params)
- : PluginPlaceholder(render_frame,
- frame,
- params,
- "<div>Test content</div>",
- GURL("http://www.test.com")) {
-}
-
-void TestPluginPlaceholder::BindWebFrame(blink::WebFrame* frame) {
- v8::Isolate* isolate = blink::mainThreadIsolate();
- v8::HandleScope handle_scope(isolate);
- v8::Local<v8::Context> context = frame->mainWorldScriptContext();
- DCHECK(!context.IsEmpty());
-
- v8::Context::Scope context_scope(context);
- v8::Local<v8::Object> global = context->Global();
- global->Set(gin::StringToV8(isolate, "plugin"),
- gin::CreateHandle(isolate, this).ToV8());
-}
-
-} // namespace content
« no previous file with comments | « content/shell/renderer/layout_test/test_plugin_placeholder.h ('k') | gin/wrappable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698