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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 2376403003: Convert RapporRecorder to use mojo. (Closed)
Patch Set: Convert RapporRecorder to use mojo. Created 4 years, 2 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 | « chrome/renderer/chrome_content_renderer_client.h ('k') | components/rappor/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index e70b1dd5a80f256bceba2ef931b7ac96e88ffed0..bf188100906d206974ea13dca3b4acaa52850dc8 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -1336,12 +1336,16 @@ ChromeContentRendererClient::CreateBrowserPluginDelegate(
void ChromeContentRendererClient::RecordRappor(const std::string& metric,
const std::string& sample) {
- RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRappor(metric, sample));
+ if (!rappor_recorder_)
+ RenderThread::Get()->GetRemoteInterfaces()->GetInterface(&rappor_recorder_);
+ rappor_recorder_->RecordRappor(metric, sample);
}
void ChromeContentRendererClient::RecordRapporURL(const std::string& metric,
const GURL& url) {
- RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRapporURL(metric, url));
+ if (!rappor_recorder_)
+ RenderThread::Get()->GetRemoteInterfaces()->GetInterface(&rappor_recorder_);
+ rappor_recorder_->RecordRapporURL(metric, url);
}
std::unique_ptr<blink::WebAppBannerClient>
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.h ('k') | components/rappor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698