| Index: remoting/host/setup/me2me_native_messaging_host_main.cc
|
| diff --git a/remoting/host/setup/me2me_native_messaging_host_main.cc b/remoting/host/setup/me2me_native_messaging_host_main.cc
|
| index 903d0712c87a4d02ca1e5229e871a3233e44581c..f497b78e9c1c4dcf919ae3fbb213a6b036cf6be0 100644
|
| --- a/remoting/host/setup/me2me_native_messaging_host_main.cc
|
| +++ b/remoting/host/setup/me2me_native_messaging_host_main.cc
|
| @@ -6,15 +6,18 @@
|
|
|
| #include "base/at_exit.h"
|
| #include "base/command_line.h"
|
| +#include "base/files/file.h"
|
| #include "base/i18n/icu_util.h"
|
| #include "base/message_loop/message_loop.h"
|
| #include "base/run_loop.h"
|
| #include "base/strings/string_number_conversions.h"
|
| +#include "base/threading/thread.h"
|
| #include "net/url_request/url_fetcher.h"
|
| #include "remoting/base/breakpad.h"
|
| #include "remoting/base/url_request_context_getter.h"
|
| #include "remoting/host/host_exit_codes.h"
|
| #include "remoting/host/logging.h"
|
| +#include "remoting/host/native_messaging/pipe_messaging_channel.h"
|
| #include "remoting/host/pairing_registry_delegate.h"
|
| #include "remoting/host/setup/me2me_native_messaging_host.h"
|
| #include "remoting/host/usage_stats_consent.h"
|
| @@ -238,15 +241,15 @@ int StartMe2MeNativeMessagingHost() {
|
| #endif // !defined(OS_WIN)
|
|
|
| // Set up the native messaging channel.
|
| - scoped_ptr<NativeMessagingChannel> channel(
|
| - new NativeMessagingChannel(read_file.Pass(), write_file.Pass()));
|
| + scoped_ptr<PipeMessagingChannel> channel(
|
| + new PipeMessagingChannel(read_file.Pass(), write_file.Pass()));
|
|
|
| // Create the native messaging host.
|
| scoped_ptr<Me2MeNativeMessagingHost> host(
|
| new Me2MeNativeMessagingHost(
|
| needs_elevation,
|
| static_cast<intptr_t>(native_view_handle),
|
| - channel.Pass(),
|
| + channel.PassAs<extensions::NativeMessagingChannel>(),
|
| daemon_controller,
|
| pairing_registry,
|
| oauth_client.Pass()));
|
|
|