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..b576b23461a57a93af3f49c51dc328a6b1432f2d 100644 |
--- a/components/gcm_driver/gcm_client_impl.cc |
+++ b/components/gcm_driver/gcm_client_impl.cc |
@@ -478,7 +478,9 @@ void GCMClientImpl::StartGCM() { |
void GCMClientImpl::InitializeMCSClient() { |
std::vector<GURL> endpoints; |
endpoints.push_back(gservices_settings_.GetMCSMainEndpoint()); |
- endpoints.push_back(gservices_settings_.GetMCSFallbackEndpoint()); |
+ GURL fallback_endpoint = gservices_settings_.GetMCSFallbackEndpoint(); |
+ if (fallback_endpoint.is_valid()) |
+ endpoints.push_back(fallback_endpoint); |
connection_factory_ = internals_builder_->BuildConnectionFactory( |
endpoints, |
GetGCMBackoffPolicy(), |