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

Side by Side Diff: chrome/browser/resources/offline_pages/offline_internals.js

Issue 2142703002: [Offline Pages] Showing expired pages in internal page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests. Created 4 years, 5 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 cr.define('offlineInternals', function() { 5 cr.define('offlineInternals', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** @type {!Array<OfflinePage>} */ 8 /** @type {!Array<OfflinePage>} */
9 var offlinePages = []; 9 var offlinePages = [];
10 10
(...skipping 30 matching lines...) Expand all
41 row.appendChild(cell); 41 row.appendChild(cell);
42 42
43 cell = document.createElement('td'); 43 cell = document.createElement('td');
44 cell.textContent = pages[i].namespace; 44 cell.textContent = pages[i].namespace;
45 row.appendChild(cell); 45 row.appendChild(cell);
46 46
47 cell = document.createElement('td'); 47 cell = document.createElement('td');
48 cell.textContent = Math.round(pages[i].size / 1024); 48 cell.textContent = Math.round(pages[i].size / 1024);
49 row.appendChild(cell); 49 row.appendChild(cell);
50 50
51 cell = document.createElement('td');
52 cell.textContent = pages[i].isExpired;
53 row.appendChild(cell);
54
51 storedPagesTable.appendChild(row); 55 storedPagesTable.appendChild(row);
52 } 56 }
53 offlinePages = pages; 57 offlinePages = pages;
54 } 58 }
55 59
56 /** 60 /**
57 * Fill requests table. 61 * Fill requests table.
58 * @param {!Array<SavePageRequest>} requests An array object representing 62 * @param {!Array<SavePageRequest>} requests An array object representing
59 * the request queue. 63 * the request queue.
60 */ 64 */
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 refreshAll(); 189 refreshAll();
186 } 190 }
187 191
188 // Return an object with all of the exports. 192 // Return an object with all of the exports.
189 return { 193 return {
190 initialize: initialize, 194 initialize: initialize,
191 }; 195 };
192 }); 196 });
193 197
194 document.addEventListener('DOMContentLoaded', offlineInternals.initialize); 198 document.addEventListener('DOMContentLoaded', offlineInternals.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698