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

Unified Diff: components/rappor/rappor_utils.cc

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Fix more compile errors in JNI files Created 4 years 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
Index: components/rappor/rappor_utils.cc
diff --git a/components/rappor/rappor_utils.cc b/components/rappor/rappor_utils.cc
index 639ba259a52db79a7394f6fa9ba9ff2033d904c8..dfc232a888cc5edef58e412e67cffd1451900199 100644
--- a/components/rappor/rappor_utils.cc
+++ b/components/rappor/rappor_utils.cc
@@ -2,9 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/rappor/rappor_utils.h"
+#include "components/rappor/public/rappor_utils.h"
-#include "components/rappor/rappor_service.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
#include "net/base/url_util.h"
#include "url/gurl.h"
@@ -17,7 +16,7 @@ void SampleString(RapporService* rappor_service,
const std::string& sample) {
if (!rappor_service)
return;
- rappor_service->RecordSample(metric, type, sample);
+ rappor_service->RecordSampleString(metric, type, sample);
}
std::string GetDomainAndRegistrySampleFromGURL(const GURL& gurl) {
@@ -39,10 +38,8 @@ void SampleDomainAndRegistryFromGURL(RapporService* rappor_service,
const GURL& gurl) {
if (!rappor_service)
return;
- rappor_service->RecordSample(
- metric,
- rappor::ETLD_PLUS_ONE_RAPPOR_TYPE,
- GetDomainAndRegistrySampleFromGURL(gurl));
+ rappor_service->RecordSampleString(metric, rappor::ETLD_PLUS_ONE_RAPPOR_TYPE,
+ GetDomainAndRegistrySampleFromGURL(gurl));
}
RapporService* (*g_GetDefaultService)() = nullptr;

Powered by Google App Engine
This is Rietveld 408576698