Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4467)

Unified Diff: chrome/browser/resources/sync_internals/chrome_sync.js

Issue 290023003: sync: Add UI code for per type debug counters (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Update comment and rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/ios/grit_whitelist.txt ('k') | chrome/browser/resources/sync_internals/sync_index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
};
« no previous file with comments | « build/ios/grit_whitelist.txt ('k') | chrome/browser/resources/sync_internals/sync_index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698