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']; |
} |
/** |