| Index: remoting/protocol/session.h
|
| diff --git a/remoting/protocol/session.h b/remoting/protocol/session.h
|
| index aaecbf90ae1fd943f93d4dbcb904a1d9558974a4..27558d7b8da2d5e5496dcc42fd35efbc9d00df8d 100644
|
| --- a/remoting/protocol/session.h
|
| +++ b/remoting/protocol/session.h
|
| @@ -58,7 +58,7 @@ class Session : public base::NonThreadSafe {
|
| CHANNEL_CONNECTION_ERROR,
|
| };
|
|
|
| - typedef Callback1<State>::Type StateChangeCallback;
|
| + typedef base::Callback<void(State)> StateChangeCallback;
|
|
|
| // TODO(sergeyu): Specify connection error code when channel
|
| // connection fails.
|
| @@ -70,7 +70,7 @@ class Session : public base::NonThreadSafe {
|
|
|
| // Set callback that is called when state of the connection is changed.
|
| // Must be called on the jingle thread only.
|
| - virtual void SetStateChangeCallback(StateChangeCallback* callback) = 0;
|
| + virtual void SetStateChangeCallback(const StateChangeCallback& callback) = 0;
|
|
|
| // Returns error code for a failed session.
|
| virtual Error error() = 0;
|
|
|