Chromium Code Reviews| 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..6d786016a8c05c417c5d5a38521d57171d5138d4 100644 |
| --- a/google_apis/gcm/engine/mcs_client.cc |
| +++ b/google_apis/gcm/engine/mcs_client.cc |
| @@ -128,6 +128,21 @@ 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: |
| + return std::string(); |
|
jianli
2014/03/06 01:55:21
ditto
juyik
2014/03/06 02:23:59
Done.
|
| + } |
| +} |
| + |
| MCSClient::MCSClient(const std::string& version_string, |
| base::Clock* clock, |
| ConnectionFactory* connection_factory, |