OLD | NEW |
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 Loading... |
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); |
OLD | NEW |