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

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

Issue 10890002: Make V8ValueConverter.FromV8Value behave similarly to JSON.stringify (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no more function Created 8 years, 3 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/renderer/resources/extensions/storage_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/storage_custom_bindings.js b/chrome/renderer/resources/extensions/storage_custom_bindings.js
index 9b0ece5e5982c8625de72b820b7660ee0a5ba388..d2300991ae0b140abe28a599b226f002bb44f322 100644
--- a/chrome/renderer/resources/extensions/storage_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/storage_custom_bindings.js
@@ -33,7 +33,8 @@ chromeHidden.registerCustomType('storage.StorageArea', function() {
return sendRequest(
'storage.' + functionName,
[namespace].concat(args),
- extendSchema(funSchema.definition.parameters));
+ extendSchema(funSchema.definition.parameters),
+ {preserveNullInObjects: true});
};
}
var apiFunctions = ['get', 'set', 'remove', 'clear', 'getBytesInUse'];

Powered by Google App Engine
This is Rietveld 408576698