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

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

Issue 591463003: Remote Assistance on Chrome OS Part III - NativeMessageHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@native_messaging
Patch Set: Created 6 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/browser/extensions/api/messaging/native_message_port.cc
diff --git a/chrome/browser/extensions/api/messaging/native_message_port.cc b/chrome/browser/extensions/api/messaging/native_message_port.cc
index a0a47d561bbb77cad1e495fcaad3a1a5bb46da41..c5a35f1a3febd406c7313d38e3a8c0b700e21146 100644
--- a/chrome/browser/extensions/api/messaging/native_message_port.cc
+++ b/chrome/browser/extensions/api/messaging/native_message_port.cc
@@ -10,13 +10,14 @@
namespace extensions {
-NativeMessagePort::NativeMessagePort(NativeMessageProcessHost* native_process)
- : native_process_(native_process) {
+NativeMessagePort::NativeMessagePort(
+ NativeMessageHost* native_message_host)
+ : native_message_host_(native_message_host) {
}
NativeMessagePort::~NativeMessagePort() {
content::BrowserThread::DeleteSoon(
- content::BrowserThread::IO, FROM_HERE, native_process_);
+ content::BrowserThread::IO, FROM_HERE, native_message_host_);
}
void NativeMessagePort::DispatchOnMessage(
@@ -24,8 +25,8 @@ void NativeMessagePort::DispatchOnMessage(
int target_port_id) {
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
- base::Bind(&NativeMessageProcessHost::Send,
- base::Unretained(native_process_), message.data));
+ base::Bind(&NativeMessageHost::Send,
+ base::Unretained(native_message_host_), message.data));
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698