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 d9ef590b02ffc94f5e3ecbb3dfb8f064209caa17..ce30534d84d0964d0abf6070d66bfa6ba21018cf 100644 |
--- a/chrome/browser/resources/chromeos/drive_internals.js |
+++ b/chrome/browser/resources/chromeos/drive_internals.js |
@@ -69,6 +69,20 @@ function updateCacheContents(cacheEntry) { |
} |
/** |
+ * Updates the Local Storage summary. |
+ * @param {Object} localStorageSummary Dictionaty describing the status of local |
+ * stogage. |
+ */ |
+function updateLocalStorageUsage(localStorageSummary) { |
+ var place_holder = $('local-storage-usage'); |
satorux1
2012/08/13 07:26:20
placeHolder
Haruki Sato
2012/08/17 05:46:34
Done. Actually, I ended up removing this temporal
|
+ |
+ var freeSpaceDesc = localStorageSummary.free_space >= 0 ? |
+ 'Local free space: ' + localStorageSummary.free_space + ' bytes.' : |
+ 'Unable to check local free space.'; |
satorux1
2012/08/13 07:26:20
chrome://drive-internals is for developers. The me
Haruki Sato
2012/08/17 05:46:34
Done.
and now it's so simple!
|
+ place_holder.appendChild(createElementFromText('div', freeSpaceDesc)); |
+} |
+ |
+/** |
* Creates an element named |elementName| containing the content |text|. |
* @param {string} elementName Name of the new element to be created. |
* @param {string} text Text to be contained in the new element. |