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

Unified Diff: chrome/browser/resources/options/search_engine_manager_engine_list.js

Issue 7104121: Add (uneditable) display of extension keywords to the search engine manager. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Catch up with base namespace for values. Created 9 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/browser/resources/options/search_engine_manager_engine_list.js
diff --git a/chrome/browser/resources/options/search_engine_manager_engine_list.js b/chrome/browser/resources/options/search_engine_manager_engine_list.js
index 0a86b5618e81c08f98e591e4888dbe2ebfbad925..4f4b836e2768364d7099267e08ba4a38e68f14b2 100644
--- a/chrome/browser/resources/options/search_engine_manager_engine_list.js
+++ b/chrome/browser/resources/options/search_engine_manager_engine_list.js
@@ -160,9 +160,13 @@ cr.define('options.search_engines', function() {
}
// Listen for edit events.
- this.addEventListener('edit', this.onEditStarted_.bind(this));
- this.addEventListener('canceledit', this.onEditCancelled_.bind(this));
- this.addEventListener('commitedit', this.onEditCommitted_.bind(this));
+ if (engine['canBeEdited']) {
+ this.addEventListener('edit', this.onEditStarted_.bind(this));
+ this.addEventListener('canceledit', this.onEditCancelled_.bind(this));
+ this.addEventListener('commitedit', this.onEditCommitted_.bind(this));
+ } else {
+ this.editable = false;
+ }
},
/** @inheritDoc */

Powered by Google App Engine
This is Rietveld 408576698