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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1014543003: Add an IPC method for Blink to call RapporService::RecordSample() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index fefede14add2b44d7f116306c859e53277a279dc..158c914c276592b0efbd78ba1e74c278957bb685 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1517,6 +1517,8 @@ bool RenderProcessHostImpl::OnMessageReceived(const IPC::Message& msg) {
OnSuddenTerminationChanged)
IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction,
OnUserMetricsRecordAction)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordRappor,
+ OnUserMetricsRecordRappor)
IPC_MESSAGE_HANDLER(ViewHostMsg_SavedPageAsMHTML, OnSavedPageAsMHTML)
IPC_MESSAGE_HANDLER(ViewHostMsg_Close_ACK, OnCloseACK)
#if defined(ENABLE_WEBRTC)
@@ -2335,6 +2337,12 @@ void RenderProcessHostImpl::OnUserMetricsRecordAction(
RecordComputedAction(action);
}
+void RenderProcessHostImpl::OnUserMetricsRecordRappor(
+ const std::string& metric,
+ const std::string& sample) {
+ RecordRappor(metric, sample);
+}
+
void RenderProcessHostImpl::OnCloseACK(int old_route_id) {
SessionStorageHolder* holder = static_cast<SessionStorageHolder*>
(GetUserData(kSessionStorageHolderKey));

Powered by Google App Engine
This is Rietveld 408576698