Index: components/rappor/rappor_utils.cc |
diff --git a/components/rappor/rappor_utils.cc b/components/rappor/rappor_utils.cc |
index 311c75da66c0623bfefda5f696f3f566f2c1d786..9b253c2fa5fa376b0c46099b6599ed6138a1e344 100644 |
--- a/components/rappor/rappor_utils.cc |
+++ b/components/rappor/rappor_utils.cc |
@@ -11,6 +11,15 @@ |
namespace rappor { |
+void SampleString(RapporService* rappor_service, |
+ const std::string& metric, |
+ RapporType type, |
+ const std::string& sample) { |
+ if (!rappor_service) |
+ return; |
+ rappor_service->RecordSample(metric, type, sample); |
+} |
+ |
std::string GetDomainAndRegistrySampleFromGURL(const GURL& gurl) { |
if (gurl.SchemeIsHTTPOrHTTPS()) { |
if (net::IsLocalhost(gurl.host())) |