| Index: google_apis/gcm/engine/mcs_client.cc
|
| diff --git a/google_apis/gcm/engine/mcs_client.cc b/google_apis/gcm/engine/mcs_client.cc
|
| index 7cbd9ae4b5c18b24bf6f1efe0f13bafc4f48a151..c203c2a6bb259545de2d3b32dadd7e57505d4721 100644
|
| --- a/google_apis/gcm/engine/mcs_client.cc
|
| +++ b/google_apis/gcm/engine/mcs_client.cc
|
| @@ -128,6 +128,22 @@ ReliablePacketInfo::ReliablePacketInfo()
|
| }
|
| ReliablePacketInfo::~ReliablePacketInfo() {}
|
|
|
| +std::string MCSClient::GetStateString() const {
|
| + switch(state_) {
|
| + case UNINITIALIZED:
|
| + return "UNINITIALIZED";
|
| + case LOADED:
|
| + return "LOADED";
|
| + case CONNECTING:
|
| + return "CONNECTING";
|
| + case CONNECTED:
|
| + return "CONNECTED";
|
| + default:
|
| + NOTREACHED();
|
| + return std::string();
|
| + }
|
| +}
|
| +
|
| MCSClient::MCSClient(const std::string& version_string,
|
| base::Clock* clock,
|
| ConnectionFactory* connection_factory,
|
|
|