| 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);
|
|
|