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

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: ChromeRenderMessageFilter, and add a URL version for bug 467648 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/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..1daf2a19d966242ed16075419dd2774fe28f772c 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -1021,6 +1021,18 @@ blink::WebString RendererBlinkPlatformImpl::convertIDNToUnicode(
//------------------------------------------------------------------------------
+void RendererBlinkPlatformImpl::recordRappor(
+ const char* metric, const blink::WebString& sample) {
Alexei Svitkine (slow) 2015/04/07 21:01:56 Nit: 1 param per line when the first one wraps. I
kojii 2015/04/08 07:21:23 Done, didn't know "git cl format", very nice, than
+ content::GetContentClient()->renderer()->RecordRappor(metric, sample.utf8());
+}
+
+void RendererBlinkPlatformImpl::recordRapporURL(
+ const char* metric, const blink::WebURL& url) {
+ content::GetContentClient()->renderer()->RecordRapporURL(metric, url);
jam 2015/04/07 20:57:44 here and above, remove "content::"
kojii 2015/04/08 07:21:23 Done.
+}
+
+//------------------------------------------------------------------------------
+
// static
void RendererBlinkPlatformImpl::SetMockDeviceLightDataForTesting(double data) {
g_test_device_light_data = data;

Powered by Google App Engine
This is Rietveld 408576698