Chromium Code Reviews| Index: components/rappor/rappor_service.cc |
| diff --git a/components/rappor/rappor_service.cc b/components/rappor/rappor_service.cc |
| index 67bc4aa0b29651f34e83878446994c088f8f0c31..48799b9e9d23c1f8bf0977d817d40ef721d0c935 100644 |
| --- a/components/rappor/rappor_service.cc |
| +++ b/components/rappor/rappor_service.cc |
| @@ -35,10 +35,17 @@ const char kRapporRolloutFieldTrialName[] = "RapporRollout"; |
| // Constant for the finch parameter name for the server URL |
| const char kRapporRolloutServerUrlParam[] = "ServerUrl"; |
| +// The rappor server's URL. |
| +const char kDefaultServerUrl[] = "https://clients4.google.com/rappor"; |
| + |
| GURL GetServerUrl() { |
| - return GURL(chrome_variations::GetVariationParamValue( |
| + std::string server_url = chrome_variations::GetVariationParamValue( |
| kRapporRolloutFieldTrialName, |
| - kRapporRolloutServerUrlParam)); |
| + kRapporRolloutServerUrlParam); |
| + if (server_url.size()) |
|
Alexei Svitkine (slow)
2014/07/23 21:11:52
Nit: ! .empty()
Steven Holte
2014/07/24 21:58:06
Done.
|
| + return GURL(server_url); |
| + else |
| + return GURL(kDefaultServerUrl); |
| } |
| const RapporParameters kRapporParametersForType[NUM_RAPPOR_TYPES] = { |