Use base::ConstRef instead of const pointer
BUG=
Review-Url: https://codereview.chromium.org/1952333002
Cr-Commit-Position: refs/heads/master@{#392101}
diff --git a/remoting/test/it2me_standalone_host.cc b/remoting/test/it2me_standalone_host.cc
index 9dbaff3..f18d005 100644
--- a/remoting/test/it2me_standalone_host.cc
+++ b/remoting/test/it2me_standalone_host.cc
@@ -25,9 +25,8 @@
namespace {
-void OutputFakeConnectionEventLogger(const FakeConnectionEventLogger* logger) {
- DCHECK(logger);
- std::cout << *logger;
+void OutputFakeConnectionEventLogger(const FakeConnectionEventLogger& logger) {
+ std::cout << logger;
}
constexpr char kSessionJid[] = "user@domain/rest-of-jid";
@@ -79,7 +78,8 @@
void It2MeStandaloneHost::StartOutputTimer() {
timer_.Start(FROM_HERE, base::TimeDelta::FromSeconds(1),
- base::Bind(&OutputFakeConnectionEventLogger, &event_logger_));
+ base::Bind(&OutputFakeConnectionEventLogger,
+ base::ConstRef(event_logger_)));
}
void It2MeStandaloneHost::Connect() {