Index: remoting/host/it2me/it2me_native_messaging_host_main.cc |
diff --git a/remoting/host/it2me/it2me_native_messaging_host_main.cc b/remoting/host/it2me/it2me_native_messaging_host_main.cc |
index cf30a87f449df2a239268701cea0fa489b65e976..7d27d19e1d061c7755e4bb0aaef44aef174ec73d 100644 |
--- a/remoting/host/it2me/it2me_native_messaging_host_main.cc |
+++ b/remoting/host/it2me/it2me_native_messaging_host_main.cc |
@@ -9,10 +9,10 @@ |
#include "base/i18n/icu_util.h" |
#include "base/message_loop/message_loop.h" |
#include "base/run_loop.h" |
+#include "media/base/media.h" |
#include "net/socket/ssl_server_socket.h" |
#include "remoting/base/breakpad.h" |
#include "remoting/base/resources.h" |
-#include "remoting/host/chromoting_host_context.h" |
#include "remoting/host/host_exit_codes.h" |
#include "remoting/host/it2me/it2me_native_messaging_host.h" |
#include "remoting/host/logging.h" |
@@ -80,6 +80,9 @@ |
// single-threaded. |
net::EnableSSLServerSockets(); |
+ // Ensures runtime specific CPU features are initialized. |
+ media::InitializeCPUSpecificMediaFeatures(); |
+ |
#if defined(OS_WIN) |
// GetStdHandle() returns pseudo-handles for stdin and stdout even if |
// the hosting executable specifies "Windows" subsystem. However the returned |
@@ -123,7 +126,8 @@ |
new PipeMessagingChannel(read_file.Pass(), write_file.Pass())); |
scoped_ptr<extensions::NativeMessageHost> host(new It2MeNativeMessagingHost( |
- ChromotingHostContext::Create(task_runner), factory.Pass())); |
+ task_runner, |
+ factory.Pass())); |
host->Start(native_messaging_pipe.get()); |