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

Unified Diff: components/gcm_driver/gcm_client_impl.cc

Issue 1492913002: Add command line overrides for GCM checkin URL & MCS endpoint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | google_apis/gcm/engine/gservices_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/gcm_client_impl.cc
diff --git a/components/gcm_driver/gcm_client_impl.cc b/components/gcm_driver/gcm_client_impl.cc
index 9c4c6ad05870240443ce628a43c06e39c7337fb6..fb871e0ba57c2c110d90c1f06b9ec91cba303f5e 100644
--- a/components/gcm_driver/gcm_client_impl.cc
+++ b/components/gcm_driver/gcm_client_impl.cc
@@ -479,6 +479,8 @@ void GCMClientImpl::InitializeMCSClient() {
std::vector<GURL> endpoints;
endpoints.push_back(gservices_settings_.GetMCSMainEndpoint());
endpoints.push_back(gservices_settings_.GetMCSFallbackEndpoint());
+ if (endpoints[1].is_empty())
Nicolas Zea 2015/12/02 19:48:21 nit: I think it would be cleaner to do GURL fallba
johnme 2015/12/03 12:22:49 Done.
+ endpoints.pop_back();
connection_factory_ = internals_builder_->BuildConnectionFactory(
endpoints,
GetGCMBackoffPolicy(),
« no previous file with comments | « no previous file | google_apis/gcm/engine/gservices_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698