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

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

Issue 10890002: Make V8ValueConverter.FromV8Value behave similarly to JSON.stringify (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ignore -> omit 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/send_request.js
diff --git a/chrome/renderer/resources/extensions/send_request.js b/chrome/renderer/resources/extensions/send_request.js
index 1d7231f22a0ca09793ea31f9854a6b4d9abf3b6d..9b474a3aa8d7e01b185d6c1e34fb1884476ff6d3 100644
--- a/chrome/renderer/resources/extensions/send_request.js
+++ b/chrome/renderer/resources/extensions/send_request.js
@@ -85,6 +85,7 @@ function prepareRequest(args, argSchemas) {
// StartRequest if missing.
// - forIOThread: true if this function should be handled on the browser IO
// thread.
+// - preserveNullInObjects: true if it is safe for null to be in objects.
function sendRequest(functionName, args, argSchemas, opt_args) {
if (!opt_args)
opt_args = {};
@@ -111,7 +112,7 @@ function sendRequest(functionName, args, argSchemas, opt_args) {
var hasCallback =
(request.callback || opt_args.customCallback) ? true : false;
return nativeFunction(functionName, requestArgs, requestId, hasCallback,
- opt_args.forIOThread);
+ opt_args.forIOThread, opt_args.preserveNullInObjects);
}
exports.sendRequest = sendRequest;

Powered by Google App Engine
This is Rietveld 408576698