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

Unified Diff: chrome/renderer/resources/extensions/event.js

Issue 8540012: Enable extension APIs for content scripts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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/renderer/resources/extensions/event.js
diff --git a/chrome/renderer/resources/extensions/event.js b/chrome/renderer/resources/extensions/event.js
index 601f5703cf5e28d4574360b9279bb68c8bc80afa..45d7080a6c478b2fbc9002e6ccba527ea80c57a2 100644
--- a/chrome/renderer/resources/extensions/event.js
+++ b/chrome/renderer/resources/extensions/event.js
@@ -13,6 +13,10 @@ var chrome = chrome || {};
// Local implementation of JSON.parse & JSON.stringify that protect us
// from being clobbered by an extension.
+ //
+ // TODO(aa): This makes me so sad. We shouldn't need it, as we can just pass
+ // Values directly over IPC without serializing to strings and use
+ // JSONValueConverter.
chromeHidden.JSON = new (function() {
var $Object = Object;
var $Array = Array;
« no previous file with comments | « chrome/renderer/renderer_resources.grd ('k') | chrome/renderer/resources/extensions/extension_process_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698