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

Side by Side Diff: chrome/common/extensions/docs/examples/api/infobars/sandwichbar/contentscript.js

Issue 11745015: Update references to the extension messaging APIs to point to the "runtime" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this 2 * Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
3 * source code is governed by a BSD-style license that can be found in the 3 * source code is governed by a BSD-style license that can be found in the
4 * LICENSE file. 4 * LICENSE file.
5 */ 5 */
6 var regex = /sandwich/gi; 6 var regex = /sandwich/gi;
7 matches = document.body.innerText.match(regex); 7 matches = document.body.innerText.match(regex);
8 if (matches) { 8 if (matches) {
9 var payload = { 9 var payload = {
10 count: matches.length // Pass the number of matches back. 10 count: matches.length // Pass the number of matches back.
11 }; 11 };
12 chrome.extension.sendRequest(payload, function(response) {}); 12 chrome.extension.sendRequest(payload, function(response) {});
13 } 13 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698