| Index: chrome/browser/resources/sync_internals/sync_search.js
|
| diff --git a/chrome/browser/resources/sync_internals/sync_search.js b/chrome/browser/resources/sync_internals/sync_search.js
|
| index 7e3f3459fdad787ee181fe037ea53b4852839b25..9f491ecd495932728a2fd02d60bd3870dcb024e9 100644
|
| --- a/chrome/browser/resources/sync_internals/sync_search.js
|
| +++ b/chrome/browser/resources/sync_internals/sync_search.js
|
| @@ -47,11 +47,16 @@ cr.define('chrome.sync', function() {
|
| var searchId = ++currSearchId;
|
| try {
|
| var regex = new RegExp(query);
|
| - chrome.sync.getAllNodes(query, function(allNodes) {
|
| + chrome.sync.getAllNodes(function(node_map) {
|
| + // Put all nodes into one big list that ignores the type.
|
| + var nodes = node_map.
|
| + map(function(x) { return x.nodes; }).
|
| + reduce(function(a, b) { return a.concat(b); });
|
| +
|
| if (currSearchId != searchId) {
|
| return;
|
| }
|
| - callback(allNodes.filter(function(elem) {
|
| + callback(nodes.filter(function(elem) {
|
| return regex.test(JSON.stringify(elem, null, 2));
|
| }), null);
|
| });
|
|
|