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

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

Issue 10387120: use load_time_data for about:crashes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/crashes.html ('k') | chrome/browser/ui/webui/crashes_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/crashes.js
diff --git a/chrome/browser/resources/crashes.js b/chrome/browser/resources/crashes.js
index baf0c6c6faf4ef303c6132f8c6bfd7b16a6319f7..c845c748f4f59de4bc31bd448a40a5da8022476d 100644
--- a/chrome/browser/resources/crashes.js
+++ b/chrome/browser/resources/crashes.js
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-localStrings = new LocalStrings();
-
/**
* Requests the list of crashes from the backend.
*/
@@ -18,7 +16,7 @@ function requestCrashes() {
* @param {string} version The browser version.
*/
function updateCrashList(enabled, crashes, version) {
- $('countBanner').textContent = localStrings.getStringF('crashCountFormat',
+ $('countBanner').textContent = loadTimeData.getStringF('crashCountFormat',
crashes.length);
var crashSection = $('crashList');
@@ -37,11 +35,11 @@ function updateCrashList(enabled, crashes, version) {
var crashBlock = document.createElement('div');
var title = document.createElement('h3');
- title.textContent = localStrings.getStringF('crashHeaderFormat',
+ title.textContent = loadTimeData.getStringF('crashHeaderFormat',
crash['id']);
crashBlock.appendChild(title);
var date = document.createElement('p');
- date.textContent = localStrings.getStringF('crashTimeFormat',
+ date.textContent = loadTimeData.getStringF('crashTimeFormat',
crash['time']);
crashBlock.appendChild(date);
var linkBlock = document.createElement('p');
@@ -76,7 +74,7 @@ function updateCrashList(enabled, crashes, version) {
}
link.href = href;
link.target = '_blank';
- link.textContent = localStrings.getString('bugLinkText');
+ link.textContent = loadTimeData.getString('bugLinkText');
linkBlock.appendChild(link);
crashBlock.appendChild(linkBlock);
crashSection.appendChild(crashBlock);
« no previous file with comments | « chrome/browser/resources/crashes.html ('k') | chrome/browser/ui/webui/crashes_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698