Chromium Code Reviews| Index: remoting/host/remoting_me2me_host.cc |
| diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc |
| index 2b8b28b3ce1a76b849f7bf90c68caae84891e984..68f3aa101acbbc8e2a527437c7343eb64324d626 100644 |
| --- a/remoting/host/remoting_me2me_host.cc |
| +++ b/remoting/host/remoting_me2me_host.cc |
| @@ -78,6 +78,7 @@ |
| #if defined(OS_LINUX) |
| #include "remoting/host/audio_capturer_linux.h" |
| +#include "remoting/host/pam_authorization_factory_posix.h" |
| #endif // defined(OS_LINUX) |
| // N.B. OS_WIN is defined by including src/base headers. |
| @@ -393,6 +394,9 @@ void HostProcess::CreateAuthenticatorFactory() { |
| scoped_ptr<protocol::AuthenticatorFactory> factory( |
| new protocol::Me2MeHostAuthenticatorFactory( |
| local_certificate, *key_pair_.private_key(), host_secret_hash_)); |
| +#if defined(OS_LINUX) |
| + factory.reset(new PamAuthorizationFactory(factory.Pass())); |
|
Wez
2012/10/26 03:25:43
nit: Precede this with a brief comment explaining
Jamie
2012/10/26 17:53:30
Done.
|
| +#endif |
| host_->SetAuthenticatorFactory(factory.Pass()); |
| } |