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

Unified Diff: chrome/common/extensions/docs/examples/api/storage/stylizr/popup.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/api/storage/stylizr/popup.js
diff --git a/chrome/common/extensions/docs/examples/api/storage/stylizr/popup.js b/chrome/common/extensions/docs/examples/api/storage/stylizr/popup.js
index c19b5c180d786e83018333741947b870021696ea..fe6b58dbedb00ca3f9a2dfbfd495385c731c49d4 100644
--- a/chrome/common/extensions/docs/examples/api/storage/stylizr/popup.js
+++ b/chrome/common/extensions/docs/examples/api/storage/stylizr/popup.js
@@ -15,7 +15,7 @@ storage.get('css', function(items) {
// If there is CSS specified, inject it into the page.
if (items.css) {
chrome.tabs.insertCSS(null, {code: items.css}, function() {
- if (chrome.extension.lastError) {
+ if (chrome.runtime.lastError) {
message.innerText = 'Not allowed to inject CSS into special page.';
} else {
message.innerText = 'Injected style!';

Powered by Google App Engine
This is Rietveld 408576698