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

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

Issue 14366011: drive: Fix a bug that broke "Delta Update Status" in chrome:drive-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 (localMetadata['account-metadata-refreshing'] ? ' (refreshing)' : ''); 182 (localMetadata['account-metadata-refreshing'] ? ' (refreshing)' : '');
183 } 183 }
184 184
185 /** 185 /**
186 * Updates the summary about delta update status. 186 * Updates the summary about delta update status.
187 * @param {Object} deltaUpdateStatus Dictionary describing delta update status. 187 * @param {Object} deltaUpdateStatus Dictionary describing delta update status.
188 */ 188 */
189 function updateDeltaUpdateStatus(deltaUpdateStatus) { 189 function updateDeltaUpdateStatus(deltaUpdateStatus) {
190 $('push-notification-enabled').textContent = 190 $('push-notification-enabled').textContent =
191 deltaUpdateStatus['push-notification-enabled']; 191 deltaUpdateStatus['push-notification-enabled'];
192 $('polling-interval-sec').textContent =
193 deltaUpdateStatus['polling-interval-sec'];
194 $('last-update-check-time').textContent = 192 $('last-update-check-time').textContent =
195 deltaUpdateStatus['last-update-check-time']; 193 deltaUpdateStatus['last-update-check-time'];
196 $('last-update-check-error').textContent = 194 $('last-update-check-error').textContent =
197 deltaUpdateStatus['last-update-check-error']; 195 deltaUpdateStatus['last-update-check-error'];
198 } 196 }
199 197
200 /** 198 /**
201 * Updates the event log section. 199 * Updates the event log section.
202 * @param {Array} log Array of events. 200 * @param {Array} log Array of events.
203 */ 201 */
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 $('button-show-file-entries').addEventListener('click', function() { 259 $('button-show-file-entries').addEventListener('click', function() {
262 var button = $('button-show-file-entries'); 260 var button = $('button-show-file-entries');
263 button.parentNode.removeChild(button); 261 button.parentNode.removeChild(button);
264 chrome.send('listFileEntries'); 262 chrome.send('listFileEntries');
265 }); 263 });
266 264
267 window.setInterval(function() { 265 window.setInterval(function() {
268 chrome.send('periodicUpdate'); 266 chrome.send('periodicUpdate');
269 }, 1000); 267 }, 1000);
270 }); 268 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698