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

Unified Diff: chrome/renderer/extensions/send_request_natives.cc

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/extensions/send_request_natives.cc
===================================================================
--- chrome/renderer/extensions/send_request_natives.cc (revision 246091)
+++ chrome/renderer/extensions/send_request_natives.cc (working copy)
@@ -43,6 +43,7 @@
bool has_callback = args[3]->BooleanValue();
bool for_io_thread = args[4]->BooleanValue();
bool preserve_null_in_objects = args[5]->BooleanValue();
+ int sender_tab_id = args[6]->Int32Value();
scoped_ptr<V8ValueConverter> converter(V8ValueConverter::create());
@@ -61,7 +62,7 @@
}
request_sender_->StartRequest(
- context(), name, request_id, has_callback, for_io_thread,
+ context(), name, request_id, has_callback, for_io_thread, sender_tab_id,
static_cast<base::ListValue*>(value_args.get()));
}

Powered by Google App Engine
This is Rietveld 408576698