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

Unified Diff: chrome/browser/extensions/api/messaging/native_process_launcher.cc

Issue 12406002: Pass ID of the calling extension to the native messaging host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/browser/extensions/api/messaging/native_process_launcher.cc
diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher.cc b/chrome/browser/extensions/api/messaging/native_process_launcher.cc
index ee53ec7c07e6d1e82c56a6853dd2a130d8ed1a8b..2fe660168aebe8ffbea7fb75ffade4395a9e1614 100644
--- a/chrome/browser/extensions/api/messaging/native_process_launcher.cc
+++ b/chrome/browser/extensions/api/messaging/native_process_launcher.cc
@@ -160,10 +160,13 @@ void NativeProcessLauncherImpl::Core::DoLaunchOnThreadPool(
return;
}
+ CommandLine command_line(manifest->path());
+ command_line.AppendArg(origin.spec());
+
base::PlatformFile read_file;
base::PlatformFile write_file;
bool result = NativeProcessLauncher::LaunchNativeProcess(
- manifest->path(), &read_file, &write_file);
+ command_line, &read_file, &write_file);
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698