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

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: Use SampleString in rappor_utils Created 5 years, 8 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') | no next file » | 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 b4a106b81eb109f15943d98bf2ea7e62289167c4..19f1a54cccb69aa298c5e4546efd1e0a4016faff 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -1027,6 +1027,18 @@ blink::WebString RendererBlinkPlatformImpl::convertIDNToUnicode(
//------------------------------------------------------------------------------
+void RendererBlinkPlatformImpl::recordRappor(const char* metric,
+ const blink::WebString& sample) {
+ GetContentClient()->renderer()->RecordRappor(metric, sample.utf8());
+}
+
+void RendererBlinkPlatformImpl::recordRapporURL(const char* metric,
+ const blink::WebURL& url) {
+ GetContentClient()->renderer()->RecordRapporURL(metric, url);
+}
+
+//------------------------------------------------------------------------------
+
// 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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698