OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 cr.define('gcmInternals', function() { | 5 cr.define('gcmInternals', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 var isRecording = false; | 8 var isRecording = false; |
9 | 9 |
10 /** | 10 /** |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 $('recording').textContent = 'Start Recording'; | 135 $('recording').textContent = 'Start Recording'; |
136 $('recording').disabled = false; | 136 $('recording').disabled = false; |
137 if (infos.deviceInfo !== undefined) { | 137 if (infos.deviceInfo !== undefined) { |
138 displayDeviceInfo(infos.deviceInfo); | 138 displayDeviceInfo(infos.deviceInfo); |
139 } | 139 } |
140 | 140 |
141 refreshLogTable('checkin-info', infos.checkinInfo); | 141 refreshLogTable('checkin-info', infos.checkinInfo); |
142 refreshLogTable('connection-info', infos.connectionInfo); | 142 refreshLogTable('connection-info', infos.connectionInfo); |
143 refreshLogTable('registration-info', infos.registrationInfo); | 143 refreshLogTable('registration-info', infos.registrationInfo); |
144 refreshLogTable('receive-info', infos.receiveInfo); | 144 refreshLogTable('receive-info', infos.receiveInfo); |
145 refreshLogTable('decryption-failure-info', infos.decryptionFailureInfo); | |
146 refreshLogTable('send-info', infos.sendInfo); | 145 refreshLogTable('send-info', infos.sendInfo); |
147 } | 146 } |
148 | 147 |
149 // Return an object with all of the exports. | 148 // Return an object with all of the exports. |
150 return { | 149 return { |
151 initialize: initialize, | 150 initialize: initialize, |
152 setGcmInternalsInfo: setGcmInternalsInfo, | 151 setGcmInternalsInfo: setGcmInternalsInfo, |
153 }; | 152 }; |
154 }); | 153 }); |
155 | 154 |
156 document.addEventListener('DOMContentLoaded', gcmInternals.initialize); | 155 document.addEventListener('DOMContentLoaded', gcmInternals.initialize); |
OLD | NEW |