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

Unified Diff: chrome/browser/plugins/plugin_info_message_filter.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/plugins/plugin_info_message_filter.cc
diff --git a/chrome/browser/plugins/plugin_info_message_filter.cc b/chrome/browser/plugins/plugin_info_message_filter.cc
index 69395b8b494c6047de16fc344b84c2f78f15b36a..3543c2e7610e9bea6d863788cf72c9933d5b032a 100644
--- a/chrome/browser/plugins/plugin_info_message_filter.cc
+++ b/chrome/browser/plugins/plugin_info_message_filter.cc
@@ -38,7 +38,7 @@
#include "components/content_settings/core/common/content_settings.h"
#include "components/keyed_service/content/browser_context_keyed_service_shutdown_notifier_factory.h"
#include "components/prefs/pref_service.h"
-#include "components/rappor/rappor_service.h"
+#include "components/rappor/rappor_service_impl.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/plugin_service.h"
#include "content/public/browser/plugin_service_filter.h"
@@ -119,7 +119,8 @@ void ReportMetrics(const std::string& mime_type,
if (chrome::IsIncognitoSessionActive())
return;
- rappor::RapporService* rappor_service = g_browser_process->rappor_service();
+ rappor::RapporServiceImpl* rappor_service =
+ g_browser_process->rappor_service();
if (!rappor_service)
return;
if (main_frame_origin.unique())
@@ -127,16 +128,15 @@ void ReportMetrics(const std::string& mime_type,
if (mime_type == content::kFlashPluginSwfMimeType ||
mime_type == content::kFlashPluginSplMimeType) {
- rappor_service->RecordSample(
+ rappor_service->RecordSampleString(
"Plugins.FlashOriginUrl", rappor::ETLD_PLUS_ONE_RAPPOR_TYPE,
net::registry_controlled_domains::GetDomainAndRegistry(
main_frame_origin.GetURL(),
net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES));
- rappor_service->RecordSample(
+ rappor_service->RecordSampleString(
"Plugins.FlashUrl", rappor::ETLD_PLUS_ONE_RAPPOR_TYPE,
net::registry_controlled_domains::GetDomainAndRegistry(
- url,
- net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES));
+ url, net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES));
}
}

Powered by Google App Engine
This is Rietveld 408576698