| Index: chrome/browser/resources/predictors/autocomplete_action_predictor.js
|
| diff --git a/chrome/browser/resources/network_action_predictor/network_action_predictor.js b/chrome/browser/resources/predictors/autocomplete_action_predictor.js
|
| similarity index 86%
|
| rename from chrome/browser/resources/network_action_predictor/network_action_predictor.js
|
| rename to chrome/browser/resources/predictors/autocomplete_action_predictor.js
|
| index 8a6fe7741965d694ce9742c9cf8b80ccdca4b223..5a722e8e02532ac7eada9c431a52f869f7edd857 100644
|
| --- a/chrome/browser/resources/network_action_predictor/network_action_predictor.js
|
| +++ b/chrome/browser/resources/predictors/autocomplete_action_predictor.js
|
| @@ -5,16 +5,16 @@
|
| /**
|
| * Requests the database from the backend.
|
| */
|
| -function requestNetworkActionPredictorDb() {
|
| +function requestAutocompleteActionPredictorDb() {
|
| console.debug('Requesting NAP DB');
|
| - chrome.send('requestNetworkActionPredictorDb');
|
| + chrome.send('requestAutocompleteActionPredictorDb');
|
| }
|
|
|
|
|
| /**
|
| * Callback from backend with the database contents. Sets up some globals and
|
| * calls to create the UI.
|
| - * @param {Dictionary} database Information about NetworkActionPredictor
|
| + * @param {Dictionary} database Information about AutocompleteActionPredictor
|
| * including the database as a flattened list, a boolean indicating if the
|
| * system is enabled and the current hit weight.
|
| */
|
| @@ -32,7 +32,7 @@ function updateDatabaseTable(database) {
|
|
|
| /**
|
| * Updates the table from the database.
|
| - * @param {Dictionary} database Information about NetworkActionPredictor
|
| + * @param {Dictionary} database Information about AutocompleteActionPredictor
|
| * including the database as a flattened list, a boolean indicating if the
|
| * system is enabled and the current hit weight.
|
| */
|
| @@ -77,6 +77,5 @@ function updateDatabaseView(database) {
|
| $('countBanner').textContent += ' Hit Weight: ' + database.hit_weight;
|
| }
|
|
|
| -document.addEventListener('DOMContentLoaded', requestNetworkActionPredictorDb);
|
| -
|
| -
|
| +document.addEventListener('DOMContentLoaded',
|
| + requestAutocompleteActionPredictorDb);
|
|
|