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

Unified Diff: chrome/common/extensions/docs/examples/extensions/catifier/event_page.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: rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/examples/extensions/catifier/event_page.js
diff --git a/chrome/common/extensions/docs/examples/extensions/catifier/event_page.js b/chrome/common/extensions/docs/examples/extensions/catifier/event_page.js
index 18b6460f9e75f5965a0f9554792411ed18a71f83..2618fdcec0cab829c5911bdc4d71588a7647c94e 100644
--- a/chrome/common/extensions/docs/examples/extensions/catifier/event_page.js
+++ b/chrome/common/extensions/docs/examples/extensions/catifier/event_page.js
@@ -47,8 +47,8 @@ function registerRules() {
};
var callback = function() {
- if (chrome.extension.lastError) {
- console.error('Error adding rules: ' + chrome.extension.lastError);
+ if (chrome.runtime.lastError) {
+ console.error('Error adding rules: ' + chrome.runtime.lastError);
} else {
console.info('Rules successfully installed');
chrome.declarativeWebRequest.onRequest.getRules(null,
@@ -70,8 +70,8 @@ function setup() {
chrome.declarativeWebRequest.onRequest.removeRules(
null,
function() {
- if (chrome.extension.lastError) {
- console.error('Error clearing rules: ' + chrome.extension.lastError);
+ if (chrome.runtime.lastError) {
+ console.error('Error clearing rules: ' + chrome.runtime.lastError);
} else {
registerRules();
}

Powered by Google App Engine
This is Rietveld 408576698