| Index: chrome/test/data/extensions/api_test/processes/onupdated/background.js
|
| ===================================================================
|
| --- chrome/test/data/extensions/api_test/processes/onupdated/background.js (revision 0)
|
| +++ chrome/test/data/extensions/api_test/processes/onupdated/background.js (revision 0)
|
| @@ -0,0 +1,17 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// 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");
|
|
|