| 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 a5550fff6a8af7bc3f4ee3887b3cabbd60724ca2..8442c845a8481d0199b2abdf916cf08fba7e259d 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/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"
|
| @@ -5220,4 +5221,14 @@ void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) {
|
| binding_sets_.erase(it);
|
| }
|
|
|
| +::rappor::RapporService* WebContentsImpl::getRapporService() {
|
| + if (!GetDelegate())
|
| + return nullptr;
|
| + return GetDelegate()->getRapporService();
|
| +}
|
| +
|
| +std::string WebContentsImpl::getRapporCommittedUrl() {
|
| + return ::rappor::GetDomainAndRegistrySampleFromGURL(GetLastCommittedURL());
|
| +}
|
| +
|
| } // namespace content
|
|
|