| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // require: cr.js | 5 // require: cr.js |
| 6 // require: cr/event_target.js | 6 // require: cr/event_target.js |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * @fileoverview This creates a log object which listens to and | 9 * @fileoverview This creates a log object which listens to and |
| 10 * records all sync events. | 10 * records all sync events. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 authError: authError | 68 authError: authError |
| 69 }); | 69 }); |
| 70 }); | 70 }); |
| 71 | 71 |
| 72 chrome.sync.onUpdatedToken.addListener(function (token) { | 72 chrome.sync.onUpdatedToken.addListener(function (token) { |
| 73 self.log_('manager', 'onUpdatedToken', { | 73 self.log_('manager', 'onUpdatedToken', { |
| 74 token: token | 74 token: token |
| 75 }); | 75 }); |
| 76 }); | 76 }); |
| 77 | 77 |
| 78 chrome.sync.onPassphraseRequired.addListener(function (forDecryption) { | 78 chrome.sync.onPassphraseRequired.addListener(function (reason) { |
| 79 self.log_('manager', 'onPassphraseRequired', { | 79 self.log_('manager', 'onPassphraseRequired', { |
| 80 forDecryption: forDecryption | 80 reason: reason |
| 81 }); | 81 }); |
| 82 }); | 82 }); |
| 83 | 83 |
| 84 chrome.sync.onPassphraseAccepted.addListener(function (bootstrapToken) { | 84 chrome.sync.onPassphraseAccepted.addListener(function (bootstrapToken) { |
| 85 self.log_('manager', 'onPassphraseAccepted', { | 85 self.log_('manager', 'onPassphraseAccepted', { |
| 86 bootstrapToken: bootstrapToken | 86 bootstrapToken: bootstrapToken |
| 87 }); | 87 }); |
| 88 }); | 88 }); |
| 89 | 89 |
| 90 chrome.sync.onEncryptionComplete.addListener(function (encrypted_types) { | 90 chrome.sync.onEncryptionComplete.addListener(function (encrypted_types) { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 var e = cr.doc.createEvent('CustomEvent'); | 153 var e = cr.doc.createEvent('CustomEvent'); |
| 154 e.initCustomEvent('append', false, false, entry); | 154 e.initCustomEvent('append', false, false, entry); |
| 155 this.dispatchEvent(e); | 155 this.dispatchEvent(e); |
| 156 } | 156 } |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 return { | 159 return { |
| 160 log: new Log() | 160 log: new Log() |
| 161 }; | 161 }; |
| 162 }); | 162 }); |
| OLD | NEW |