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

Unified Diff: content/public/browser/content_browser_client.h

Issue 948293002: Add RAPPOR metrics of ServiceWorker.ControlledPage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add reppor.xml Created 5 years, 10 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/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index fbe8214fd2462901e9ebf31f5630974233bfb58a..f0c7eaf32924a70429050e77a2a2ad35af3f1aff 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -626,6 +626,10 @@ class CONTENT_EXPORT ContentBrowserClient {
const OpenURLParams& params,
const base::Callback<void(WebContents*)>& callback);
+ // Records the domain and registry of a url to a Rappor metric.
+ virtual void SampleDomainAndRegistryFromGURL(const std::string& metric,
falken 2015/02/25 01:43:59 What's the reason we're recording domain and regis
horo 2015/02/25 02:27:00 Rappor is designed to use "the eTLD+1 of the user'
falken 2015/02/25 03:36:57 I think that's just saying "Settings.HomePage2" us
Steven Holte 2015/02/25 18:30:12 It's possible to record things other that eTLD+1,
+ const GURL& gurl) {}
+
#if defined(OS_POSIX) && !defined(OS_MACOSX)
// Populates |mappings| with all files that need to be mapped before launching
// a child process.

Powered by Google App Engine
This is Rietveld 408576698