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

Unified Diff: chrome/common/extensions/docs/examples/api/processes/show_tabs/popup.html

Issue 3801008: Expands the chrome.experimental.processes extension API. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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/common/extensions/docs/examples/api/processes/show_tabs/popup.html
===================================================================
--- chrome/common/extensions/docs/examples/api/processes/show_tabs/popup.html (revision 62984)
+++ chrome/common/extensions/docs/examples/api/processes/show_tabs/popup.html (working copy)
@@ -5,13 +5,13 @@
function init() {
chrome.windows.getCurrent(function(currentWindow) {
chrome.tabs.getSelected(currentWindow.id, function(selectedTab) {
- chrome.experimental.processes.getProcessForTab(selectedTab.id,
- function(process) {
+ chrome.experimental.processes.getProcessIdForTab(selectedTab.id,
+ function(pid) {
var outputDiv = document.getElementById("tab-list");
var titleDiv = document.getElementById("title");
- titleDiv.innerHTML = "<b>Tabs in Process " + process.id + ":</b>";
+ titleDiv.innerHTML = "<b>Tabs in Process " + pid + ":</b>";
displayTabInfo(currentWindow.id, selectedTab, outputDiv);
- displaySameProcessTabs(selectedTab, process.id, outputDiv);
+ displaySameProcessTabs(selectedTab, pid, outputDiv);
}
);
@@ -34,9 +34,9 @@
// Display tab in list if it is in the same process
tabs.forEach(function(tab) {
- chrome.experimental.processes.getProcessForTab(tab.id,
- function(process) {
- if (process.id == processId) {
+ chrome.experimental.processes.getProcessIdForTab(tab.id,
+ function(pid) {
+ if (pid == processId) {
displayTabInfo(tab.windowId, tab, outputDiv);
}
}

Powered by Google App Engine
This is Rietveld 408576698