Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: remoting/host/simple_host_process.cc

Issue 7262015: Conenct Chromoting plugin debug log to JS UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing host logging files Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698