Index: chrome/browser/resources/sync_internals/chrome_sync.js |
diff --git a/chrome/browser/resources/sync_internals/chrome_sync.js b/chrome/browser/resources/sync_internals/chrome_sync.js |
index 5bd7e6ffa80dc459c7e55644acfc4a2fabfe4dcf..93121fde889e76c39f8d4a0655b192a78ced7492 100644 |
--- a/chrome/browser/resources/sync_internals/chrome_sync.js |
+++ b/chrome/browser/resources/sync_internals/chrome_sync.js |
@@ -54,6 +54,14 @@ cr.define('chrome.sync', function() { |
}; |
/** |
+ * Registers to receive a stream of status counter update events |
+ * chrome.sync.dispatchEvent(). |
+ */ |
+ var registerForPerTypeCounters = function() { |
+ chrome.send('registerForPerTypeCounters'); |
+ } |
+ |
+ /** |
* Asks the browser to refresh our snapshot of sync state. Should result |
* in an onAboutInfoUpdated event being emitted. |
*/ |
@@ -111,6 +119,7 @@ cr.define('chrome.sync', function() { |
getAllNodes: getAllNodes, |
getAllNodesCallback: getAllNodesCallback, |
registerForEvents: registerForEvents, |
+ registerForPerTypeCounters: registerForPerTypeCounters, |
requestUpdatedAboutInfo: requestUpdatedAboutInfo, |
requestListOfTypes: requestListOfTypes, |
}; |