| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 * WebUI to monitor the Sync File System Service. | 6 * WebUI to monitor the Sync File System Service. |
| 7 */ | 7 */ |
| 8 var syncService = (function() { | 8 var SyncService = (function() { |
| 9 'use strict'; | 9 'use strict'; |
| 10 | 10 |
| 11 var SyncService = {}; | 11 var SyncService = {}; |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Request Sync Service Status. | 14 * Request Sync Service Status. |
| 15 */ | 15 */ |
| 16 function getServiceStatus() { | 16 function getServiceStatus() { |
| 17 chrome.send('getServiceStatus'); | 17 chrome.send('getServiceStatus'); |
| 18 } | 18 } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 getServiceStatus(); | 82 getServiceStatus(); |
| 83 getNotificationSource(); | 83 getNotificationSource(); |
| 84 | 84 |
| 85 // TODO: Look for a way to push entries to the page when necessary. | 85 // TODO: Look for a way to push entries to the page when necessary. |
| 86 window.setInterval(getLog, 1000); | 86 window.setInterval(getLog, 1000); |
| 87 } | 87 } |
| 88 | 88 |
| 89 document.addEventListener('DOMContentLoaded', main); | 89 document.addEventListener('DOMContentLoaded', main); |
| 90 return SyncService; | 90 return SyncService; |
| 91 })(); | 91 })(); |
| OLD | NEW |