| 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
|
|
|