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

Unified Diff: chrome/browser/safe_browsing/srt_fetcher_win.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: chrome/browser/safe_browsing/srt_fetcher_win.cc
diff --git a/chrome/browser/safe_browsing/srt_fetcher_win.cc b/chrome/browser/safe_browsing/srt_fetcher_win.cc
index a7bd91a84dc746eea91ecdf8068ac6a2962d1e62..2711ba291e61f825b841b1ae450d90155adb7ffc 100644
--- a/chrome/browser/safe_browsing/srt_fetcher_win.cc
+++ b/chrome/browser/safe_browsing/srt_fetcher_win.cc
@@ -43,7 +43,7 @@
#include "components/component_updater/pref_names.h"
#include "components/data_use_measurement/core/data_use_user_data.h"
#include "components/prefs/pref_service.h"
-#include "components/rappor/rappor_service.h"
+#include "components/rappor/rappor_service_impl.h"
#include "components/safe_browsing_db/safe_browsing_prefs.h"
#include "components/variations/net/variations_http_headers.h"
#include "components/version_info/version_info.h"
@@ -253,7 +253,7 @@ class UMAHistogramReporter {
return;
}
- rappor::RapporService* rappor_service = nullptr;
+ rappor::RapporServiceImpl* rappor_service = nullptr;
if (use_rappor)
rappor_service = g_browser_process->rappor_service();
@@ -264,9 +264,9 @@ class UMAHistogramReporter {
if (base::StringToUint(uws_string, &uws_id)) {
RecordSparseHistogram(kFoundUwsMetricName, uws_id);
if (rappor_service) {
- rappor_service->RecordSample(kFoundUwsMetricName,
- rappor::COARSE_RAPPOR_TYPE,
- base::UTF16ToUTF8(uws_string));
+ rappor_service->RecordSampleString(kFoundUwsMetricName,
+ rappor::COARSE_RAPPOR_TYPE,
+ base::UTF16ToUTF8(uws_string));
}
} else {
parse_error = true;

Powered by Google App Engine
This is Rietveld 408576698