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

Unified Diff: chrome/renderer/resources/extensions/extension_options_deny.js

Issue 378783002: Initial implementation of the <extensionoptions> GuestView tag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
Index: chrome/renderer/resources/extensions/extension_options_deny.js
diff --git a/chrome/renderer/resources/extensions/app_view_deny.js b/chrome/renderer/resources/extensions/extension_options_deny.js
similarity index 68%
copy from chrome/renderer/resources/extensions/app_view_deny.js
copy to chrome/renderer/resources/extensions/extension_options_deny.js
index c228694d2bcaf89e2186d2b75ae69912793b2367..64309e8b4ca6ced87a93c0ab13104120d4ab8a74 100644
--- a/chrome/renderer/resources/extensions/app_view_deny.js
+++ b/chrome/renderer/resources/extensions/extension_options_deny.js
@@ -6,20 +6,21 @@ var DocumentNatives = requireNative('document_natives');
// Output error message to console when using the <webview> tag with no
// permission.
-var errorMessage = "You do not have permission to use the appview element." +
- " Be sure to declare the 'appview' permission in your manifest file and use" +
- " the --enable-app-view command line flag.";
+var errorMessage = "You do not have permission to use the extensionoptions " +
+ "element. Be sure to declare the 'extensionoptions' permission in your " +
+ " manifest file and use the --enable-embedded-extension-options command " +
+ " line flag.";
// Registers <webview> custom element.
-function registerAppViewElement() {
+function registerExtensionOptionsElement() {
var proto = Object.create(HTMLElement.prototype);
proto.createdCallback = function() {
window.console.error(errorMessage);
};
- window.AppView =
- DocumentNatives.RegisterElement('appview', {prototype: proto});
+ window.ExtensionOptions =
+ DocumentNatives.RegisterElement('extensionoptions', {prototype: proto});
// Delete the callbacks so developers cannot call them and produce unexpected
// behavior.
@@ -34,6 +35,6 @@ window.addEventListener('readystatechange', function listener(event) {
if (document.readyState == 'loading')
return;
- registerAppViewElement();
+ registerExtensionOptionsElement();
window.removeEventListener(event.type, listener, useCapture);
}, useCapture);

Powered by Google App Engine
This is Rietveld 408576698