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

Unified Diff: remoting/protocol/fake_session.h

Issue 7796026: Pass SessionConfig by reference instead of pointer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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/protocol/fake_session.h
diff --git a/remoting/protocol/fake_session.h b/remoting/protocol/fake_session.h
index 13409d0ab8c798d97e8fda5168214f2c027a28b9..d223774922f24df05d0dd42b1ece3cbda5d5aa1a 100644
--- a/remoting/protocol/fake_session.h
+++ b/remoting/protocol/fake_session.h
@@ -149,8 +149,8 @@ class FakeSession : public Session {
virtual const std::string& jid();
virtual const CandidateSessionConfig* candidate_config();
- virtual const SessionConfig* config();
- virtual void set_config(const SessionConfig* config);
+ virtual const SessionConfig& config();
+ virtual void set_config(const SessionConfig& config);
virtual const std::string& initiator_token();
virtual void set_initiator_token(const std::string& initiator_token);
@@ -165,7 +165,7 @@ class FakeSession : public Session {
public:
scoped_ptr<StateChangeCallback> callback_;
scoped_ptr<const CandidateSessionConfig> candidate_config_;
- scoped_ptr<const SessionConfig> config_;
+ SessionConfig config_;
MessageLoop* message_loop_;
FakeSocket control_channel_;
FakeSocket event_channel_;

Powered by Google App Engine
This is Rietveld 408576698