Chromium Code Reviews

Unified Diff: remoting/host/heartbeat_sender.h

Issue 719983002: Reporting of policy errors via host-offline-reason: part 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hor-nohoststatussender
Patch Set: Rebasing... Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: remoting/host/heartbeat_sender.h
diff --git a/remoting/host/heartbeat_sender.h b/remoting/host/heartbeat_sender.h
index 73080be9a6d3683cf1cb3c2869214f3477206fe9..3451e89c3ab04fb2def5c1806f9dcc6e8a3648d5 100644
--- a/remoting/host/heartbeat_sender.h
+++ b/remoting/host/heartbeat_sender.h
@@ -95,7 +95,7 @@ class HeartbeatSender : public SignalStrategy::Listener {
const base::Closure& on_unknown_host_id_error,
const std::string& host_id,
SignalStrategy* signal_strategy,
- scoped_refptr<RsaKeyPair> key_pair,
+ const scoped_refptr<RsaKeyPair> key_pair,
const std::string& directory_bot_jid);
~HeartbeatSender() override;
@@ -140,7 +140,7 @@ class HeartbeatSender : public SignalStrategy::Listener {
base::Closure on_unknown_host_id_error_;
std::string host_id_;
SignalStrategy* signal_strategy_;
- scoped_refptr<RsaKeyPair> key_pair_;
+ const scoped_refptr<RsaKeyPair> key_pair_;
Lambros 2014/12/02 03:35:22 Why change this?
Łukasz Anforowicz 2014/12/02 20:08:01 The assumption here is that presence of "const" is
Lambros 2014/12/03 03:20:24 But this field is a value type (not a reference or
Łukasz Anforowicz 2014/12/03 17:54:21 You're right. I don't know what I was thinking.
std::string directory_bot_jid_;
scoped_ptr<IqSender> iq_sender_;
scoped_ptr<IqRequest> request_;

Powered by Google App Engine