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); |
}); |
}); |