summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-09 04:10:02 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-09 04:10:02 +0000
commitda4a915783ed4ad919b99b175337df8721adc41c (patch)
tree78a753c8710be4904fa0ca904de8995a91a65a57 /chrome/common/extensions/docs
parent60c42a8c7b44171abc3f8a58d0f69a923ead2bbd (diff)
downloadchromium_src-da4a915783ed4ad919b99b175337df8721adc41c.zip
chromium_src-da4a915783ed4ad919b99b175337df8721adc41c.tar.gz
chromium_src-da4a915783ed4ad919b99b175337df8721adc41c.tar.bz2
Fix signature of onConnect.addListener in content scripts doc.
BUG=none TEST=none Review URL: http://codereview.chromium.org/265057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28516 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs')
-rwxr-xr-xchrome/common/extensions/docs/content_scripts.html4
-rw-r--r--chrome/common/extensions/docs/static/content_scripts.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/extensions/docs/content_scripts.html b/chrome/common/extensions/docs/content_scripts.html
index 59abed9..4976304 100755
--- a/chrome/common/extensions/docs/content_scripts.html
+++ b/chrome/common/extensions/docs/content_scripts.html
@@ -411,8 +411,8 @@ chrome.extension.onConnect.addListener(function(port) {
&lt;/div&gt;
&lt;script&gt;
// Listen for notifications from the content script.
-chrome.extension.onConnect.addListener(function(port, name) {
- console.assert(name == "notifyChannel");
+chrome.extension.onConnect.addListener(function(port) {
+ console.assert(port.name == "notifyChannel");
port.onMessage.addListener(function(msg) {
// Color our button based on whether a login element was found.
var color = msg.found ? "blue" : "grey";
diff --git a/chrome/common/extensions/docs/static/content_scripts.html b/chrome/common/extensions/docs/static/content_scripts.html
index bbbfeb3..cbd738f 100644
--- a/chrome/common/extensions/docs/static/content_scripts.html
+++ b/chrome/common/extensions/docs/static/content_scripts.html
@@ -190,8 +190,8 @@ toolstrip.html
&lt;/div&gt;
&lt;script&gt;
// Listen for notifications from the content script.
-chrome.extension.onConnect.addListener(function(port, name) {
- console.assert(name == "notifyChannel");
+chrome.extension.onConnect.addListener(function(port) {
+ console.assert(port.name == "notifyChannel");
port.onMessage.addListener(function(msg) {
// Color our button based on whether a login element was found.
var color = msg.found ? "blue" : "grey";