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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Fix more compile errors in JNI files Created 4 years 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/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index c6c043a1052a1ce132e5bc1d257da0073e1d9f88..1e5e8b7a7a00631b333c9433eb34d1f1313f9f0c 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -30,6 +30,7 @@
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "components/mime_util/mime_util.h"
+#include "components/rappor/public/rappor_utils.h"
#include "components/url_formatter/url_formatter.h"
#include "content/browser/accessibility/accessibility_mode_helper.h"
#include "content/browser/accessibility/browser_accessibility_state_impl.h"
@@ -5284,4 +5285,11 @@ void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) {
binding_sets_.erase(it);
}
+bool WebContentsImpl::AddDomainInfoToRapporSample(rappor::Sample* sample) {
+ sample->SetStringField("Domain", ::rappor::GetDomainAndRegistrySampleFromGURL(
+ GetLastCommittedURL()));
+
+ return true;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698