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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1014543003: Add an IPC method for Blink to call RapporService::RecordSample() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | components/rappor.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index e1d18627a3c4f59c70463e7cb3f24add15c4cd68..b792df246f464bc83f2ea7ae1b21465b88163ad9 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -97,6 +97,7 @@
#include "components/google/core/browser/google_util.h"
#include "components/metrics/client_info.h"
#include "components/pref_registry/pref_registry_syncable.h"
+#include "components/rappor/rappor_message_filter.h"
#include "components/rappor/rappor_utils.h"
#include "components/signin/core/common/profile_management_switches.h"
#include "components/translate/core/common/translate_switches.h"
@@ -836,6 +837,8 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch(
DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile);
host->AddFilter(new data_reduction_proxy::DataReductionProxyMessageFilter(
data_reduction_proxy_settings));
+ host->AddFilter(new rappor::RapporMessageFilter(
+ g_browser_process->rappor_service()));
host->Send(new ChromeViewMsg_SetIsIncognitoProcess(
profile->IsOffTheRecord()));
« no previous file with comments | « no previous file | components/rappor.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698