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

Unified Diff: chrome/browser/resources/predictors/autocomplete_action_predictor.js

Issue 9610006: Refactoring, moving and renaming the NetworkActionPredictor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Resolved sync conflicts. Created 8 years, 8 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/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);

Powered by Google App Engine
This is Rietveld 408576698