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 (function() { | 5 (function() { |
6 var dumpToTextButton = $('dump-to-text'); | 6 var dumpToTextButton = $('dump-to-text'); |
7 var dataDump = $('data-dump'); | 7 var dataDump = $('data-dump'); |
8 dumpToTextButton.addEventListener('click', function(event) { | 8 dumpToTextButton.addEventListener('click', function(event) { |
9 // TODO(akalin): Add info like Chrome version, OS, date dumped, etc. | 9 // TODO(akalin): Add info like Chrome version, OS, date dumped, etc. |
10 | 10 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 'onReceivedListOfTypes', | 192 'onReceivedListOfTypes', |
193 onReceivedListOfTypes); | 193 onReceivedListOfTypes); |
194 chrome.sync.requestListOfTypes(); | 194 chrome.sync.requestListOfTypes(); |
195 }); | 195 }); |
196 | 196 |
197 var dumpToFileLink = $('dump-to-file'); | 197 var dumpToFileLink = $('dump-to-file'); |
198 dumpToFileLink.addEventListener('click', function(event) { | 198 dumpToFileLink.addEventListener('click', function(event) { |
199 chrome.sync.getAllNodes(triggerDataDownload); | 199 chrome.sync.getAllNodes(triggerDataDownload); |
200 }); | 200 }); |
201 })(); | 201 })(); |
OLD | NEW |