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

Unified Diff: chrome/common/extensions/docs/examples/extensions/plugin_settings/js/chrome_stubs.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/plugin_settings/js/chrome_stubs.js
diff --git a/chrome/common/extensions/docs/examples/extensions/plugin_settings/js/chrome_stubs.js b/chrome/common/extensions/docs/examples/extensions/plugin_settings/js/chrome_stubs.js
index 38b75143095dd4ad18691c01330076b065e8fa9b..51058d68e0e3f644dcdacdcbe11f767a5de9e1f0 100644
--- a/chrome/common/extensions/docs/examples/extensions/plugin_settings/js/chrome_stubs.js
+++ b/chrome/common/extensions/docs/examples/extensions/plugin_settings/js/chrome_stubs.js
@@ -18,11 +18,11 @@ chrome.contentSettings.plugins = {
var pattern = details.primaryPattern;
var setting = details.setting;
if (pattern == '__invalid_pattern') {
- chrome.extension.lastError = {'message': 'Invalid pattern'};
+ chrome.runtime.lastError = {'message': 'Invalid pattern'};
} else if (setting == '__invalid_setting') {
throw Error('Invalid setting');
} else {
- chrome.extension.lastError = undefined;
+ chrome.runtime.lastError = undefined;
_rules[pattern] = setting;
}
callback();

Powered by Google App Engine
This is Rietveld 408576698