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

Side by Side Diff: chrome/browser/resources/predictors/predictors.js

Issue 10380041: Refactoring AutocompleteActionPredictor Database. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Syncing to HEAD Created 8 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * Requests the database from the backend. 6 * Requests the database from the backend.
7 */ 7 */
8 function requestAutocompleteActionPredictorDb() { 8 function requestAutocompleteActionPredictorDb() {
9 console.debug('Requesting NAP DB'); 9 console.debug('Requesting NAP DB');
10 chrome.send('requestAutocompleteActionPredictorDb'); 10 chrome.send('requestAutocompleteActionPredictorDb');
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 databaseSection.appendChild(row); 73 databaseSection.appendChild(row);
74 } 74 }
75 } 75 }
76 $('countBanner').textContent = 'Entries: ' + databaseSection.children.length; 76 $('countBanner').textContent = 'Entries: ' + databaseSection.children.length;
77 $('countBanner').textContent += ' Hit Weight: ' + database.hit_weight; 77 $('countBanner').textContent += ' Hit Weight: ' + database.hit_weight;
78 } 78 }
79 79
80 document.addEventListener('DOMContentLoaded', 80 document.addEventListener('DOMContentLoaded',
81 requestAutocompleteActionPredictorDb); 81 requestAutocompleteActionPredictorDb);
OLDNEW
« no previous file with comments | « chrome/browser/resources/predictors/predictors.html ('k') | chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698