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

Unified Diff: public/platform/Platform.h

Issue 1017433002: Add RAPPOR metric recording for Device{Orientation,Motion} in blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge comments in Platform.h 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 | « Source/modules/device_orientation/DeviceOrientationController.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index ba29cdc917c98a608e47829834f868a84e89741f..a48d91e85779330d9d359c34ddc139f4465f407f 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -570,8 +570,11 @@ public:
virtual void histogramEnumeration(const char* name, int sample, int boundaryValue) { }
// Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets.
virtual void histogramSparse(const char* name, int sample) { }
- // Record to RAPPOR.
+
+ // Record to a RAPPOR privacy-preserving metric, see: https://www.chromium.org/developers/design-documents/rappor.
+ // recordRappor records a sample string, while recordRapporURL records the domain and registry of a url.
virtual void recordRappor(const char* metric, const WebString& sample) { }
+ virtual void recordRapporURL(const char* metric, const blink::WebURL& url) { }
// GPU ----------------------------------------------------------------
//
« no previous file with comments | « Source/modules/device_orientation/DeviceOrientationController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698