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

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

Issue 9610006: Refactoring, moving and renaming the NetworkActionPredictor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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/predictors.js
diff --git a/chrome/browser/resources/network_action_predictor/network_action_predictor.js b/chrome/browser/resources/predictors/predictors.js
similarity index 89%
rename from chrome/browser/resources/network_action_predictor/network_action_predictor.js
rename to chrome/browser/resources/predictors/predictors.js
index 11343cb9dd65c7ac4e10aeafe53e7e3091320710..ec8e14f9213088c83a83a4b9f93ebf9f461810bd 100644
--- a/chrome/browser/resources/network_action_predictor/network_action_predictor.js
+++ b/chrome/browser/resources/predictors/predictors.js
@@ -5,9 +5,9 @@
/**
* Requests the database from the backend.
*/
-function requestNetworkActionPredictorDb() {
+function requestAutocompleteActionPredictorDb() {
console.debug('Requesting NAP DB');
- chrome.send('requestNetworkActionPredictorDb', [])
+ chrome.send('requestAutocompleteActionPredictorDb', [])
}
@@ -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.
*/
@@ -74,4 +74,4 @@ function updateDatabaseView(database) {
$('countBanner').textContent += ' Hit Weight: ' + database.hit_weight;
}
-document.addEventListener('DOMContentLoaded', requestNetworkActionPredictorDb);
+document.addEventListener('DOMContentLoaded', requestAutocompleteActionPredictorDb);
dominich 2012/03/06 16:42:13 wrap line
Shishir 2012/03/14 21:14:37 Done.

Powered by Google App Engine
This is Rietveld 408576698