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 */ |