| Index: components/rappor/rappor_service.cc
|
| diff --git a/components/rappor/rappor_service.cc b/components/rappor/rappor_service.cc
|
| index 67bc4aa0b29651f34e83878446994c088f8f0c31..615fea55dba13c43b493340441a124d41f051ec2 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.empty())
|
| + return GURL(server_url);
|
| + else
|
| + return GURL(kDefaultServerUrl);
|
| }
|
|
|
| const RapporParameters kRapporParametersForType[NUM_RAPPOR_TYPES] = {
|
|
|