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

Unified Diff: chrome/browser/renderer_host/chrome_render_message_filter.cc

Issue 11968028: Remove connect message from Native Messaging API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/browser/renderer_host/chrome_render_message_filter.cc
diff --git a/chrome/browser/renderer_host/chrome_render_message_filter.cc b/chrome/browser/renderer_host/chrome_render_message_filter.cc
index 7d14ba73d8b7ab66829eaac2109e3ea92a7a9fb8..bd55aed943b60c98ccef683eccc9a5f36594a4c3 100644
--- a/chrome/browser/renderer_host/chrome_render_message_filter.cc
+++ b/chrome/browser/renderer_host/chrome_render_message_filter.cc
@@ -315,37 +315,30 @@ void ChromeRenderMessageFilter::OpenChannelToExtensionOnUIThread(
}
void ChromeRenderMessageFilter::OnOpenChannelToNativeApp(
- int routing_id, const std::string& source_extension_id,
+ int routing_id,
+ const std::string& source_extension_id,
const std::string& native_app_name,
- const std::string& channel_name,
- const std::string& connect_message, int* port_id) {
+ int* port_id) {
int port2_id;
extensions::MessageService::AllocatePortIdPair(port_id, &port2_id);
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
base::Bind(&ChromeRenderMessageFilter::OpenChannelToNativeAppOnUIThread,
- this,
- routing_id,
- port2_id,
- source_extension_id,
- native_app_name,
- channel_name,
- connect_message));
+ this, routing_id, port2_id, source_extension_id,
+ native_app_name));
}
void ChromeRenderMessageFilter::OpenChannelToNativeAppOnUIThread(
int source_routing_id,
int receiver_port_id,
const std::string& source_extension_id,
- const std::string& native_app_name,
- const std::string& channel_name,
- const std::string& connect_message) {
+ const std::string& native_app_name) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
extensions::ExtensionSystem::Get(profile_)->message_service()->
OpenChannelToNativeApp(
render_process_id_, source_routing_id, receiver_port_id,
- source_extension_id, native_app_name, channel_name, connect_message);
+ source_extension_id, native_app_name);
}
void ChromeRenderMessageFilter::OnOpenChannelToTab(

Powered by Google App Engine
This is Rietveld 408576698