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

Unified Diff: chrome/test/data/extensions/api_test/processes/onupdated/background.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/test/data/extensions/api_test/processes/onupdated/background.html
===================================================================
--- chrome/test/data/extensions/api_test/processes/onupdated/background.html (revision 0)
+++ chrome/test/data/extensions/api_test/processes/onupdated/background.html (revision 0)
@@ -0,0 +1,15 @@
+<script>
+// Add a simple listener to onUpdated to ensure it does not conflict with the
+// task manager.
+chrome.experimental.processes.onUpdated.addListener(function(processes) {
+ console.log("Received update.");
+});
+
+// Add a second listener to onUpdated to ensure the task manager only hears
+// about one extension listener per process.
+chrome.experimental.processes.onUpdated.addListener(function(processes) {
+ console.log("Second listener received update.");
+});
+
+chrome.test.sendMessage("ready");
+</script>
Property changes on: chrome/test/data/extensions/api_test/processes/onupdated/background.html
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698