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

Unified Diff: google_apis/gcm/engine/mcs_client.cc

Issue 176823009: Show device information in chrome://gcm-internals page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 10 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: 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..8e48aa01b97ad3d07e5c78e2d557cd2ee89814da 100644
--- a/google_apis/gcm/engine/mcs_client.cc
+++ b/google_apis/gcm/engine/mcs_client.cc
@@ -128,6 +128,20 @@ ReliablePacketInfo::ReliablePacketInfo()
}
ReliablePacketInfo::~ReliablePacketInfo() {}
+std::string MCSClient::GetStateString(State state) {
+ switch(state) {
+ case UNINITIALIZED:
+ return "UNINITIALIZED";
+ case LOADED:
+ return "LOADED";
+ case CONNECTING:
+ return "CONNECTING";
+ case CONNECTED:
+ return "CONNECTED";
+ }
+ return std::string();
+}
+
MCSClient::MCSClient(const std::string& version_string,
base::Clock* clock,
ConnectionFactory* connection_factory,

Powered by Google App Engine
This is Rietveld 408576698