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

Unified Diff: content/renderer/renderer_blink_platform_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
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | ipc/ipc_message_start.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index 2b4bc1023cc0c826b69d42719a3ac4a1cdacdd32..c2f2ac6fec4916519779bb73c4c3c2c820b280ff 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -15,6 +15,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "cc/blink/context_provider_web_context.h"
+#include "components/rappor/content/common/rappor_messages.h"
#include "content/child/database_util.h"
#include "content/child/file_info_util.h"
#include "content/child/fileapi/webfilesystem_impl.h"
@@ -1021,6 +1022,14 @@ blink::WebString RendererBlinkPlatformImpl::convertIDNToUnicode(
//------------------------------------------------------------------------------
+void RendererBlinkPlatformImpl::recordRappor(
+ const char* metric, const blink::WebString& sample) {
+ RenderThread::Get()->Send(
+ new RapporHostMsg_RecordSample(metric, sample.utf8()));
+}
+
+//------------------------------------------------------------------------------
+
// static
void RendererBlinkPlatformImpl::SetMockDeviceLightDataForTesting(double data) {
g_test_device_light_data = data;
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | ipc/ipc_message_start.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698