| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 var syncFunctions = [ | 133 var syncFunctions = [ |
| 134 // Sync service functions. | 134 // Sync service functions. |
| 135 'getAboutInfo', | 135 'getAboutInfo', |
| 136 | 136 |
| 137 // Notification functions. | 137 // Notification functions. |
| 138 'getNotificationState', | 138 'getNotificationState', |
| 139 'getNotificationInfo', | 139 'getNotificationInfo', |
| 140 | 140 |
| 141 // Node lookup functions. | 141 // Node lookup functions. |
| 142 'getRootNode', | 142 'getRootNode', |
| 143 'getNodeById', | 143 'getNodesById', |
| 144 'getChildNodeIds', |
| 144 'findNodesContainingString' | 145 'findNodesContainingString' |
| 145 ]; | 146 ]; |
| 146 | 147 |
| 147 for (var i = 0; i < syncFunctions.length; ++i) { | 148 for (var i = 0; i < syncFunctions.length; ++i) { |
| 148 var syncFunction = syncFunctions[i]; | 149 var syncFunction = syncFunctions[i]; |
| 149 chrome.sync[syncFunction] = makeSyncFunction(syncFunction); | 150 chrome.sync[syncFunction] = makeSyncFunction(syncFunction); |
| 150 } | 151 } |
| 151 | 152 |
| 152 })(); | 153 })(); |
| OLD | NEW |