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

Unified Diff: chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.js

Issue 22584002: Move processes API to dev channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased again Created 7 years, 4 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/process_monitor/popup.js
diff --git a/chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.js b/chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.js
index b0ee28817c00ca629769d6728091d0329880ea34..61f00d535e9121ca1faba60f63540fe5f94eaa1b 100644
--- a/chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.js
+++ b/chrome/common/extensions/docs/examples/api/processes/process_monitor/popup.js
@@ -4,7 +4,7 @@
// Shows an updating list of process statistics.
function init() {
- chrome.experimental.processes.onUpdatedWithMemory.addListener(
+ chrome.processes.onUpdatedWithMemory.addListener(
function(processes) {
var table = "<table>\n" +
"<tr><td><b>Process</b></td>" +
@@ -28,7 +28,7 @@ function init() {
document.getElementById("killProcess").onclick = function () {
var procId = parseInt(prompt("Enter process ID"));
- chrome.experimental.processes.terminate(procId);
+ chrome.processes.terminate(procId);
}
}
@@ -77,4 +77,4 @@ function displayProcessInfo(process, table) {
return table;
}
-document.addEventListener('DOMContentLoaded', init);
+document.addEventListener('DOMContentLoaded', init);

Powered by Google App Engine
This is Rietveld 408576698