OLD | NEW |
1 <script> | 1 <!-- |
2 // Add a simple listener to onUpdated to ensure it does not conflict with the | 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this |
3 // task manager. | 3 * source code is governed by a BSD-style license that can be found in the |
4 chrome.experimental.processes.onUpdated.addListener(function(processes) { | 4 * LICENSE file. |
5 console.log("Received update."); | 5 --> |
6 }); | 6 <script src="background.js"></script> |
7 | |
8 // Add a second listener to onUpdated to ensure the task manager only hears | |
9 // about one extension listener per process. | |
10 chrome.experimental.processes.onUpdated.addListener(function(processes) { | |
11 console.log("Second listener received update."); | |
12 }); | |
13 | |
14 chrome.test.sendMessage("ready"); | |
15 </script> | |
OLD | NEW |