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

Unified Diff: chrome/browser/resources/extensions/extension_list.js

Issue 475543003: Display extension options in a WebUI overlay instead of in a new tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 4 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/browser/resources/extensions/extension_list.js
diff --git a/chrome/browser/resources/extensions/extension_list.js b/chrome/browser/resources/extensions/extension_list.js
index 1271b28de19ca8a14fa504ed02fdbd347d26d167..08fb75e0ad1412d505af64b9625c3ff909b23254 100644
--- a/chrome/browser/resources/extensions/extension_list.js
+++ b/chrome/browser/resources/extensions/extension_list.js
@@ -193,9 +193,14 @@ cr.define('options', function() {
if (extension.enabled && extension.optionsUrl) {
var options = node.querySelector('.options-link');
options.addEventListener('click', function(e) {
- chrome.send('extensionSettingsOptions', [extension.id]);
+ if (this.data_.enableEmbeddedExtensionOptions) {
+ extensions.ExtensionOptionsOverlay.getInstance().
+ setExtensionAndShowOverlay([extension.id], extension.name);
Vitaly Pavlenko 2014/08/21 22:46:21 setExtensionAndShowOverlay() gets {string} as firs
+ } else {
+ chrome.send('extensionSettingsOptions', [extension.id]);
+ }
e.preventDefault();
- });
+ }.bind(this));
options.hidden = false;
}

Powered by Google App Engine
This is Rietveld 408576698