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

Unified Diff: chrome/browser/resources/chromeos/drive_internals.js

Issue 10834168: Drive: Show the total size of cache files at chrome://drive-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indent Created 8 years, 4 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/chromeos/drive_internals.js
diff --git a/chrome/browser/resources/chromeos/drive_internals.js b/chrome/browser/resources/chromeos/drive_internals.js
index bdd522f7a261b90f10d11de576081e3b4b140f39..f8ffe4fa45cf1006d6882a12a062394609de5b64 100644
--- a/chrome/browser/resources/chromeos/drive_internals.js
+++ b/chrome/browser/resources/chromeos/drive_internals.js
@@ -15,8 +15,9 @@ function updateAuthStatus(authStatus) {
* Updates the GCache Contents section.
* @param {Array} gcacheContents List of dictionaries describing metadata
* of files and directories under the GCache directory.
+ * @param {Array} gcacheSummary Dictionary of summary of GCache.
satorux1 2012/08/04 01:28:26 The type should be Object
*/
-function updateGCacheContents(gcacheContents) {
+function updateGCacheContents(gcacheContents, gcacheSummary) {
var tbody = $('gcache-contents');
for (var i = 0; i < gcacheContents.length; i++) {
var entry = gcacheContents[i];
@@ -34,6 +35,8 @@ function updateGCacheContents(gcacheContents) {
tr.appendChild(createElementFromText('td', entry.last_modified));
tbody.appendChild(tr);
}
+
+ $('gcache-summary-total-size').textContent = gcacheSummary['total_size'];
}
/**
« no previous file with comments | « chrome/browser/resources/chromeos/drive_internals.html ('k') | chrome/browser/ui/webui/chromeos/drive_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698