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

Unified Diff: components/rappor/rappor_service.cc

Issue 398043003: Make Rappor enabled by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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] = {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698