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

Unified Diff: chrome/renderer/resources/blocked_plugin.html

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 | « chrome/renderer/plugins/plugin_preroller.cc ('k') | components/plugins.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/blocked_plugin.html
diff --git a/chrome/renderer/resources/blocked_plugin.html b/chrome/renderer/resources/blocked_plugin.html
index 7a92c1d537a0ae75cd934970d2fbcd4baf543b88..0d4dc4aa6eeec279c7312241bdf66ad19cfe6171 100644
--- a/chrome/renderer/resources/blocked_plugin.html
+++ b/chrome/renderer/resources/blocked_plugin.html
@@ -3,10 +3,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
+<if expr="not is_android">
<script>
-function debug(msg) {
- document.getElementById('debug').textContent = msg;
-}
function setMessage(msg) {
document.getElementById('message').textContent = msg;
}
@@ -15,6 +13,12 @@ function notifyDidFinishLoading() {
plugin.didFinishLoading();
}
</script>
+</if>
+<if expr="is_android">
+<script>
+function notifyDidFinishLoading() {}
+</script>
+</if>
<link rel="stylesheet" href="plugin_placeholders.css"></link>
<style>
body {
@@ -37,7 +41,6 @@ body {
<img id="plugin_icon" src="plugin_blocked_android.png">
</if>
<h1 id="message" i18n-content="message"></h1>
-<p id="debug"> </p>
</div>
<div id="close" i18n-values="title:hide" onclick="plugin.hide();"></div>
</div>
« no previous file with comments | « chrome/renderer/plugins/plugin_preroller.cc ('k') | components/plugins.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698