Chromium Code Reviews| 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(), |