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

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

Issue 171683002: [GCM] Fix gcm login to properly identify chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review 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 127f9bf6541566e9a9c020a6337abfe721ba4d2c..a3075f6e5825a97b691d50937f5a06f2eab5e99c 100644
--- a/google_apis/gcm/engine/mcs_client.cc
+++ b/google_apis/gcm/engine/mcs_client.cc
@@ -85,10 +85,12 @@ ReliablePacketInfo::ReliablePacketInfo()
}
ReliablePacketInfo::~ReliablePacketInfo() {}
-MCSClient::MCSClient(base::Clock* clock,
+MCSClient::MCSClient(const std::string& version_string,
+ base::Clock* clock,
ConnectionFactory* connection_factory,
GCMStore* gcm_store)
- : clock_(clock),
+ : version_string_(version_string),
+ clock_(clock),
state_(UNINITIALIZED),
android_id_(0),
security_token_(0),
@@ -297,7 +299,10 @@ void MCSClient::ResetStateAndBuildLoginRequest(
// Then build the request, consuming all pending acknowledgments.
request->Swap(BuildLoginRequest(
- android_id_, security_token_, user_serial_numbers_).get());
+ android_id_,
+ security_token_,
+ version_string_,
+ user_serial_numbers_).get());
for (PersistentIdList::const_iterator iter =
restored_unackeds_server_ids_.begin();
iter != restored_unackeds_server_ids_.end(); ++iter) {

Powered by Google App Engine
This is Rietveld 408576698