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

Unified Diff: chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/contentscript.js

Issue 124603003: Change the pageaction_by_content example to use declarativeContent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/contentscript.js
diff --git a/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/contentscript.js b/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/contentscript.js
deleted file mode 100644
index 91037bb52240bce5d4c6a81b87ba4336cd1a96b2..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/contentscript.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- * Copyright (c) 2010 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.
- */
-var regex = /sandwich/;
-
-// Test the text of the body element against our regular expression.
-if (regex.test(document.body.innerText)) {
- // The regular expression produced a match, so notify the background page.
- chrome.extension.sendRequest({}, function(response) {});
-} else {
- // No match was found.
-}

Powered by Google App Engine
This is Rietveld 408576698