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

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

Issue 9581024: Added proper extensions for hosted documents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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/file_manager/js/file_manager.js
===================================================================
--- chrome/browser/resources/file_manager/js/file_manager.js (revision 124744)
+++ chrome/browser/resources/file_manager/js/file_manager.js (working copy)
@@ -1798,9 +1798,13 @@
if (navigator.language == 'he')
div.className = 'align-end-weakrtl';
div.textContent = '...';
+ var self = this;
cacheEntrySize(entry, function(entry) {
if (entry.cachedSize_ == -1) {
div.textContent = '';
+ } else if (entry.cachedSize_ == 0 &&
+ self.getFileType(entry).type == 'hosted') {
+ div.textContent = '--';
} else {
div.textContent = util.bytesToSi(entry.cachedSize_);
}
« no previous file with comments | « chrome/browser/resources/file_manager/css/file_manager.css ('k') | chrome/browser/resources/file_manager/js/file_type.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698