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

Unified Diff: chrome/common/extensions/docs/examples/api/contextMenus/basic/sample.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, 12 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/contextMenus/basic/sample.js
diff --git a/chrome/common/extensions/docs/examples/api/contextMenus/basic/sample.js b/chrome/common/extensions/docs/examples/api/contextMenus/basic/sample.js
index a58be3a387c405366d4d556685d268b20574aa71..1cc768742527a87719d046ce6fcc33e2ef46eed2 100644
--- a/chrome/common/extensions/docs/examples/api/contextMenus/basic/sample.js
+++ b/chrome/common/extensions/docs/examples/api/contextMenus/basic/sample.js
@@ -63,7 +63,7 @@ console.log("checkbox1:" + checkbox1 + " checkbox2:" + checkbox2);
console.log("About to try creating an invalid item - an error about " +
"item 999 should show up");
chrome.contextMenus.create({"title": "Oops", "parentId":999}, function() {
- if (chrome.extension.lastError) {
- console.log("Got expected error: " + chrome.extension.lastError.message);
+ if (chrome.runtime.lastError) {
+ console.log("Got expected error: " + chrome.runtime.lastError.message);
}
});

Powered by Google App Engine
This is Rietveld 408576698