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

Unified Diff: components/plugins/renderer/BUILD.gn

Issue 1126073003: Plugin Placeholders: Refactor for platforms that don't support plugins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: The version that was reverted. Created 5 years, 7 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 | « components/plugins.gypi ('k') | components/plugins/renderer/loadable_plugin_placeholder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/BUILD.gn
diff --git a/components/plugins/renderer/BUILD.gn b/components/plugins/renderer/BUILD.gn
index ef7e8f12e10be0827391e41fddd4f2b540ce68e3..446ad999507cc523e0603c866369c0a1e271ce0b 100644
--- a/components/plugins/renderer/BUILD.gn
+++ b/components/plugins/renderer/BUILD.gn
@@ -2,15 +2,21 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/features.gni")
+
static_library("renderer") {
sources = [
- "loadable_plugin_placeholder.cc",
- "loadable_plugin_placeholder.h",
"plugin_placeholder.cc",
"plugin_placeholder.h",
"webview_plugin.cc",
"webview_plugin.h",
]
+ if (enable_plugins) {
+ sources += [
+ "loadable_plugin_placeholder.cc",
+ "loadable_plugin_placeholder.h",
+ ]
+ }
if (is_android) {
sources += [
"mobile_youtube_plugin.cc",
« no previous file with comments | « components/plugins.gypi ('k') | components/plugins/renderer/loadable_plugin_placeholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698