Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
| index 851347821a0a0bdcd6a16647d46b3fa8070f14f8..8635dbbbde65afd3df18291a1b49b70677227f01 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
| @@ -141,6 +141,10 @@ WebInspector.ConsoleView = function() |
| var historyData = this._consoleHistorySetting.get(); |
| this._prompt.setHistoryData(historyData); |
| + this._consoleHistoryAutocompleteSetting = WebInspector.moduleSetting("consoleHistoryAutocomplete"); |
|
lushnikov
2016/04/11 23:00:13
nit: no need to store this in a global war
|
| + this._consoleHistoryAutocompleteSetting.addChangeListener(this._consoleHistoryAutocompleteChanged, this); |
| + this._consoleHistoryAutocompleteChanged(); |
| + |
| this._updateFilterStatus(); |
| WebInspector.moduleSetting("consoleTimestampsEnabled").addChangeListener(this._consoleTimestampsSettingChanged, this); |
| @@ -170,6 +174,11 @@ WebInspector.ConsoleView.prototype = { |
| this._prompt.setHistoryData([]); |
| }, |
| + _consoleHistoryAutocompleteChanged: function() |
| + { |
| + this._prompt.setAddCompletionsFromHistory(this._consoleHistoryAutocompleteSetting.get()); |
| + }, |
| + |
| /** |
| * @param {!WebInspector.Event} event |
| */ |