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

Side by Side Diff: chrome/browser/resources/chromeos/drive_internals.js

Issue 15663006: drive: Merge 'persistent' and 'tmp' directories to 'files' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 /** 5 /**
6 * Updates the Drive related Flags section. 6 * Updates the Drive related Flags section.
7 * @param {Array} flags List of dictionaries describing flags. 7 * @param {Array} flags List of dictionaries describing flags.
8 */ 8 */
9 function updateDriveRelatedFlags(flags) { 9 function updateDriveRelatedFlags(flags) {
10 var ul = $('drive-related-flags'); 10 var ul = $('drive-related-flags');
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 * The function is called from the C++ side repeatedly. 75 * The function is called from the C++ side repeatedly.
76 */ 76 */
77 function updateCacheContents(cacheEntry) { 77 function updateCacheContents(cacheEntry) {
78 var tr = document.createElement('tr'); 78 var tr = document.createElement('tr');
79 tr.appendChild(createElementFromText('td', cacheEntry.resource_id)); 79 tr.appendChild(createElementFromText('td', cacheEntry.resource_id));
80 tr.appendChild(createElementFromText('td', cacheEntry.md5)); 80 tr.appendChild(createElementFromText('td', cacheEntry.md5));
81 tr.appendChild(createElementFromText('td', cacheEntry.is_present)); 81 tr.appendChild(createElementFromText('td', cacheEntry.is_present));
82 tr.appendChild(createElementFromText('td', cacheEntry.is_pinned)); 82 tr.appendChild(createElementFromText('td', cacheEntry.is_pinned));
83 tr.appendChild(createElementFromText('td', cacheEntry.is_dirty)); 83 tr.appendChild(createElementFromText('td', cacheEntry.is_dirty));
84 tr.appendChild(createElementFromText('td', cacheEntry.is_mounted)); 84 tr.appendChild(createElementFromText('td', cacheEntry.is_mounted));
85 tr.appendChild(createElementFromText('td', cacheEntry.is_persistent));
86 85
87 $('cache-contents').appendChild(tr); 86 $('cache-contents').appendChild(tr);
88 } 87 }
89 88
90 /** 89 /**
91 * Updates the Local Storage summary. 90 * Updates the Local Storage summary.
92 * @param {Object} localStorageSummary Dictionary describing the status of local 91 * @param {Object} localStorageSummary Dictionary describing the status of local
93 * stogage. 92 * stogage.
94 */ 93 */
95 function updateLocalStorageUsage(localStorageSummary) { 94 function updateLocalStorageUsage(localStorageSummary) {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 $('button-show-file-entries').addEventListener('click', function() { 259 $('button-show-file-entries').addEventListener('click', function() {
261 var button = $('button-show-file-entries'); 260 var button = $('button-show-file-entries');
262 button.parentNode.removeChild(button); 261 button.parentNode.removeChild(button);
263 chrome.send('listFileEntries'); 262 chrome.send('listFileEntries');
264 }); 263 });
265 264
266 window.setInterval(function() { 265 window.setInterval(function() {
267 chrome.send('periodicUpdate'); 266 chrome.send('periodicUpdate');
268 }, 1000); 267 }, 1000);
269 }); 268 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698