| Index: chrome/test/data/extensions/samples/tabs/tabs_api.html
|
| diff --git a/chrome/test/data/extensions/samples/tabs/tabs_api.html b/chrome/test/data/extensions/samples/tabs/tabs_api.html
|
| index cc21232aa9da60277b3ae6b7469b830e45e3ab45..9b9f519fdbe8df219c4da16f56b41f6c9d370945 100644
|
| --- a/chrome/test/data/extensions/samples/tabs/tabs_api.html
|
| +++ b/chrome/test/data/extensions/samples/tabs/tabs_api.html
|
| @@ -24,19 +24,19 @@ function isInt(i) {
|
| }
|
|
|
| function loadWindowList() {
|
| - chrome.windows.getAll(true, function(windowList) {
|
| + chrome.windows.getAll({ populate: true }, function(windowList) {
|
| tabs = {};
|
| tabIds = [];
|
| for (var i = 0; i < windowList.length; i++) {
|
| windowList[i].current = (windowList[i].id == currentWindowId);
|
| windowList[i].focused = (windowList[i].id == focusedWindowId);
|
| -
|
| +
|
| for (var j = 0; j < windowList[i].tabs.length; j++) {
|
| tabIds[tabIds.length] = windowList[i].tabs[j].id;
|
| tabs[windowList[i].tabs[j].id] = windowList[i].tabs[j];
|
| }
|
| - }
|
| -
|
| + }
|
| +
|
| var input = new JsExprContext(windowList);
|
| var output = document.getElementById('windowList');
|
| jstProcess(input, output);
|
| @@ -139,8 +139,8 @@ function clearLog() {
|
| document.getElementById('log').innerHTML = '';
|
| }
|
|
|
| -chrome.windows.onCreated.addListener(function(windowId) {
|
| - appendToLog('windows.onCreated -- window: ' + windowId);
|
| +chrome.windows.onCreated.addListener(function(createInfo) {
|
| + appendToLog('windows.onCreated -- window: ' + createInfo.id);
|
| loadWindowList();
|
| });
|
|
|
|
|