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

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

Issue 14271007: Remove public bool ChangeListLoader::loaded(). (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
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 itemContainer.appendChild(tr); 168 itemContainer.appendChild(tr);
169 } 169 }
170 } 170 }
171 171
172 /** 172 /**
173 * Updates the local cache information about account metadata. 173 * Updates the local cache information about account metadata.
174 * @param {Object} localMetadata Dictionary describing account metadata. 174 * @param {Object} localMetadata Dictionary describing account metadata.
175 */ 175 */
176 function updateLocalMetadata(localMetadata) { 176 function updateLocalMetadata(localMetadata) {
177 $('account-largest-changestamp-local').textContent = 177 $('account-largest-changestamp-local').textContent =
178 localMetadata['account-largest-changestamp-local']; 178 localMetadata['account-largest-changestamp-local'].toString() +
179 $('account-metadata-loaded').textContent =
180 localMetadata['account-metadata-loaded'].toString() +
181 (localMetadata['account-metadata-refreshing'] ? ' (refreshing)' : ''); 179 (localMetadata['account-metadata-refreshing'] ? ' (refreshing)' : '');
182 } 180 }
183 181
184 /** 182 /**
185 * Updates the summary about delta update status. 183 * Updates the summary about delta update status.
186 * @param {Object} deltaUpdateStatus Dictionary describing delta update status. 184 * @param {Object} deltaUpdateStatus Dictionary describing delta update status.
187 */ 185 */
188 function updateDeltaUpdateStatus(deltaUpdateStatus) { 186 function updateDeltaUpdateStatus(deltaUpdateStatus) {
189 $('push-notification-enabled').textContent = 187 $('push-notification-enabled').textContent =
190 deltaUpdateStatus['push-notification-enabled']; 188 deltaUpdateStatus['push-notification-enabled'];
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 $('button-show-file-entries').addEventListener('click', function() { 258 $('button-show-file-entries').addEventListener('click', function() {
261 var button = $('button-show-file-entries'); 259 var button = $('button-show-file-entries');
262 button.parentNode.removeChild(button); 260 button.parentNode.removeChild(button);
263 chrome.send('listFileEntries'); 261 chrome.send('listFileEntries');
264 }); 262 });
265 263
266 window.setInterval(function() { 264 window.setInterval(function() {
267 chrome.send('periodicUpdate'); 265 chrome.send('periodicUpdate');
268 }, 1000); 266 }, 1000);
269 }); 267 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698