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

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

Issue 296003012: [fsp] Introduce chrome://fsp-internals for logging and debugging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased + addressed comments. Created 6 years, 7 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 <include src="../../../../third_party/polymer/platform/platform.js">
6 <include src="../../../../third_party/polymer/polymer/polymer.js">
7
8 // Define the file-systems element.
9 Polymer('file-systems', {
10 ready: function() {
11 },
12
13 /**
14 * List of provided file system information maps.
15 * @type {Array.<Object>}
16 */
17 model: []
18 });
19
20 /*
21 * Updates the mounted file system list.
22 * @param {Object} fileSystems Dictionary containing provided file system
23 * information.
24 *
25 */
26 function updateFileSystems(fileSystems) {
27 var mountedFileSystems = document.querySelector('#mounted-file-systems');
28 mountedFileSystems.model = fileSystems;
29 Platform.performMicrotaskCheckpoint();
30 }
31
32 document.addEventListener('DOMContentLoaded', function() {
33 chrome.send('updateFileSystems');
34
35 // Refresh periodically.
36 setInterval(function() {
37 chrome.send('updateFileSystems');
38 }, 1000);
39 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698