| 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 var chrome = chrome || {}; | 5 var chrome = chrome || {}; | 
| 6 // TODO(akalin): Add mocking code for e.g. chrome.send() so that we | 6 // TODO(akalin): Add mocking code for e.g. chrome.send() so that we | 
| 7 // can test this without rebuilding chrome. | 7 // can test this without rebuilding chrome. | 
| 8 chrome.sync = chrome.sync || {}; | 8 chrome.sync = chrome.sync || {}; | 
| 9 (function () { | 9 (function () { | 
| 10 | 10 | 
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 173 } | 173 } | 
| 174 | 174 | 
| 175 function onAuthError(authError) { | 175 function onAuthError(authError) { | 
| 176   chrome.sync.onAuthError.dispatch_(authError); | 176   chrome.sync.onAuthError.dispatch_(authError); | 
| 177 } | 177 } | 
| 178 | 178 | 
| 179 function onUpdatedToken(token) { | 179 function onUpdatedToken(token) { | 
| 180   chrome.sync.onUpdatedToken.dispatch_(token); | 180   chrome.sync.onUpdatedToken.dispatch_(token); | 
| 181 } | 181 } | 
| 182 | 182 | 
| 183 function onPassphraseRequired(forDecryption) { | 183 function onPassphraseRequired(reason) { | 
| 184   chrome.sync.onPassphraseRequired.dispatch_(forDecryption); | 184   chrome.sync.onPassphraseRequired.dispatch_(reason); | 
| 185 } | 185 } | 
| 186 | 186 | 
| 187 function onPassphraseAccepted(bootstrapToken) { | 187 function onPassphraseAccepted(bootstrapToken) { | 
| 188   chrome.sync.onPassphraseAccepted.dispatch_(bootstrapToken); | 188   chrome.sync.onPassphraseAccepted.dispatch_(bootstrapToken); | 
| 189 } | 189 } | 
| 190 | 190 | 
| 191 function onEncryptionComplete(encrypted_types) { | 191 function onEncryptionComplete(encrypted_types) { | 
| 192   chrome.sync.onEncryptionComplete.dispatch_(encrypted_types); | 192   chrome.sync.onEncryptionComplete.dispatch_(encrypted_types); | 
| 193 } | 193 } | 
| 194 | 194 | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 234   chrome.sync.getRootNode_.handleReply(rootNode); | 234   chrome.sync.getRootNode_.handleReply(rootNode); | 
| 235 } | 235 } | 
| 236 | 236 | 
| 237 function onGetNodeByIdFinished(node) { | 237 function onGetNodeByIdFinished(node) { | 
| 238   chrome.sync.getNodeById_.handleReply(node); | 238   chrome.sync.getNodeById_.handleReply(node); | 
| 239 } | 239 } | 
| 240 | 240 | 
| 241 function onGetNotificationInfoFinished(notificationInfo) { | 241 function onGetNotificationInfoFinished(notificationInfo) { | 
| 242   chrome.sync.getNotificationInfo_.handleReply(notificationInfo); | 242   chrome.sync.getNotificationInfo_.handleReply(notificationInfo); | 
| 243 } | 243 } | 
| OLD | NEW | 
|---|