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

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

Issue 134443004: sync: Remove some WebUI debug functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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
Index: chrome/browser/resources/sync_internals/data.js
diff --git a/chrome/browser/resources/sync_internals/data.js b/chrome/browser/resources/sync_internals/data.js
index 471759e9cefc46d0f674ddcb8031cc74ddc1d317..0f5c088632602f158fc930d08f2a1ec3dfd8ac55 100644
--- a/chrome/browser/resources/sync_internals/data.js
+++ b/chrome/browser/resources/sync_internals/data.js
@@ -164,19 +164,10 @@ function createTypesCheckboxes(types) {
});
}
-function populateDatatypes(childNodeSummaries) {
- var types = childNodeSummaries.map(function(n) {
- return n.type;
- });
- types = types.sort();
- createTypesCheckboxes(types);
-}
-
document.addEventListener('DOMContentLoaded', function() {
- chrome.sync.getRootNodeDetails(function(rootNode) {
- chrome.sync.getChildNodeIds(rootNode.id, function(childNodeIds) {
- chrome.sync.getNodeSummariesById(childNodeIds, populateDatatypes);
- });
+ chrome.sync.getListOfTypes(function(types) {
+ types.sort();
+ createTypesCheckboxes(types);
});
});
« no previous file with comments | « chrome/browser/resources/sync_internals/chrome_sync.js ('k') | chrome/browser/resources/sync_internals/node_browser.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698