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

Unified Diff: components/security_interstitials/core/metrics_helper.cc

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Fix an Android compile error 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/security_interstitials/core/metrics_helper.cc
diff --git a/components/security_interstitials/core/metrics_helper.cc b/components/security_interstitials/core/metrics_helper.cc
index 17073b3c6d102ec198d16b23c598ef9dcc89c5f6..340b11ef5363754a25a059bacc6f1d0f8537055e 100644
--- a/components/security_interstitials/core/metrics_helper.cc
+++ b/components/security_interstitials/core/metrics_helper.cc
@@ -11,8 +11,8 @@
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "components/history/core/browser/history_service.h"
+#include "components/rappor/public/rappor_utils.h"
#include "components/rappor/rappor_service.h"
-#include "components/rappor/rappor_utils.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
using base::RecordAction;
@@ -194,8 +194,8 @@ void MetricsHelper::RecordUserDecisionToRappor(
sample->SetFlagsField("flags", flags,
InterstitialFlagBits::HIGHEST_USED_BIT + 1);
}
- rappor_service_->RecordSampleObj("interstitial." + rappor_prefix,
- std::move(sample));
+ rappor_service_->RecordSample("interstitial." + rappor_prefix,
+ std::move(sample));
}
void MetricsHelper::RecordUserInteraction(Interaction interaction) {

Powered by Google App Engine
This is Rietveld 408576698