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

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

Issue 145463002: Extensions: Send the tab id to platform apps. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 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/renderer/resources/extensions/send_request.js
===================================================================
--- chrome/renderer/resources/extensions/send_request.js (revision 246091)
+++ chrome/renderer/resources/extensions/send_request.js (working copy)
@@ -123,6 +123,7 @@
// - 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.
+// - senderTabId: the ID of the tab that triggered this request.
function sendRequest(functionName, args, argSchemas, optArgs) {
calledSendRequest = true;
if (!optArgs)
@@ -145,7 +146,8 @@
requestId,
hasCallback,
optArgs.forIOThread,
- optArgs.preserveNullInObjects);
+ optArgs.preserveNullInObjects,
+ optArgs.senderTabId);
}
function getCalledSendRequest() {

Powered by Google App Engine
This is Rietveld 408576698