Chromium Code Reviews| Index: remoting/host/simple_host_process.cc |
| diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc |
| index 0c4ff262d68898cf7ad940b729e515da5d02a9a7..171f8e9855c3615e867110f4739d014205b910fc 100644 |
| --- a/remoting/host/simple_host_process.cc |
| +++ b/remoting/host/simple_host_process.cc |
| @@ -34,6 +34,7 @@ |
| #include "crypto/nss_util.h" |
| #include "media/base/media.h" |
| #include "remoting/base/constants.h" |
| +#include "remoting/base/logger.h" |
| #include "remoting/base/tracer.h" |
| #include "remoting/host/capturer_fake.h" |
| #include "remoting/host/chromoting_host.h" |
| @@ -175,6 +176,7 @@ class SimpleHost { |
| // Construct a chromoting host. |
| scoped_refptr<ChromotingHost> host; |
| + logger_.reset(new remoting::Logger()); |
| if (fake_) { |
| remoting::Capturer* capturer = |
| new remoting::CapturerFake(); |
| @@ -193,10 +195,10 @@ class SimpleHost { |
| new DesktopEnvironment(capturer, event_executor, curtain, |
| disconnect_window, continue_window, |
| local_input_monitor), |
| - access_verifier.release()); |
| + access_verifier.release(), logger_.get()); |
|
dmac
2011/06/26 14:34:44
do you actually need to call get here and below? C
garykac
2011/06/27 21:24:20
When using it, yes. But here is tries to pass scop
|
| } else { |
| host = ChromotingHost::Create(&context, config, |
| - access_verifier.release()); |
| + access_verifier.release(), logger_.get()); |
| } |
| host->set_it2me(is_it2me_); |
| @@ -250,6 +252,8 @@ class SimpleHost { |
| return FilePath(home_path).Append(kDefaultConfigPath); |
| } |
| + scoped_ptr<remoting::Logger> logger_; |
| + |
| FilePath config_path_; |
| bool fake_; |
| bool is_it2me_; |