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

Unified Diff: components/rappor/rappor_utils.cc

Issue 1070863002: Add rappor::SampleString for consisntecy with domain+registry case (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename to SampleString Created 5 years, 8 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 | « components/rappor/rappor_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()))
« no previous file with comments | « components/rappor/rappor_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698