| Index: chrome/browser/resources/sync_internals/sync_events.html
|
| diff --git a/chrome/browser/resources/sync_internals/sync_events.html b/chrome/browser/resources/sync_internals/sync_events.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..feb4117c5234710d7e0cdd631031ca437367c08e
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/sync_internals/sync_events.html
|
| @@ -0,0 +1,61 @@
|
| +<script>
|
| +(function() {
|
| +function onLoad() {
|
| + // TODO(akalin): Do something with these notifications.
|
| + chrome.sync.onChangesApplied.addListener(function (modelType, changes) {
|
| + console.log('onChangesApplied: ' + modelType + ': ' +
|
| + JSON.stringify(changes));
|
| + });
|
| +
|
| + chrome.sync.onChangesComplete.addListener(function (modelType) {
|
| + console.log('onChangesComplete: ' + modelType);
|
| + });
|
| +
|
| + chrome.sync.onSyncCycleCompleted.addListener(function (snapshot) {
|
| + console.log('onSyncCycleCompleted: ' + JSON.stringify(snapshot));
|
| + });
|
| +
|
| + chrome.sync.onAuthError.addListener(function (authError) {
|
| + console.log('onAuthError: ' + JSON.stringify(authError));
|
| + });
|
| +
|
| + chrome.sync.onUpdatedToken.addListener(function (token) {
|
| + console.log('onUpdatedToken: ' + token);
|
| + });
|
| +
|
| + chrome.sync.onPassphraseRequired.addListener(function (forDecryption) {
|
| + console.log('onPassphraseRequired: ' + forDecryption);
|
| + });
|
| +
|
| + chrome.sync.onPassphraseAccepted.addListener(function (bootstrapToken) {
|
| + console.log('onPassphraseAccepted: ' + bootstrapToken);
|
| + });
|
| +
|
| + chrome.sync.onInitializationComplete.addListener(function () {
|
| + console.log('onInitializationComplete');
|
| + });
|
| +
|
| + chrome.sync.onPaused.addListener(function () {
|
| + console.log('onPaused');
|
| + });
|
| +
|
| + chrome.sync.onResumed.addListener(function () {
|
| + console.log('onResumed');
|
| + });
|
| +
|
| + chrome.sync.onStopSyncingPermanently.addListener(function () {
|
| + console.log('onStopSyncingPermanently');
|
| + });
|
| +
|
| + chrome.sync.onClearServerDataSucceeded.addListener(function () {
|
| + console.log('onClearServerDataSucceeded');
|
| + });
|
| +
|
| + chrome.sync.onClearServerDataFailed.addListener(function () {
|
| + console.log('onClearServerDataFailed');
|
| + });
|
| +}
|
| +
|
| +document.addEventListener("DOMContentLoaded", onLoad, false);
|
| +})();
|
| +</script>
|
|
|