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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 49753002: RAPPOR implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 314469fc28c89d598661d6d016e9e1b9aff7bb7a..0b1c42bb82197162ec425ff6606c7eda82445a23 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -81,6 +81,7 @@
#include "chrome/common/url_constants.h"
#include "chrome/installer/util/google_update_constants.h"
#include "components/policy/core/common/policy_service.h"
+#include "components/rappor/rappor_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_security_policy.h"
#include "content/public/browser/notification_details.h"
@@ -441,6 +442,13 @@ MetricsService* BrowserProcessImpl::metrics_service() {
return metrics_service_.get();
}
+rappor::RapporService* BrowserProcessImpl::rappor_service() {
+ DCHECK(CalledOnValidThread());
+ if (!rappor_service_.get())
+ rappor_service_.reset(new rappor::RapporService());
+ return rappor_service_.get();
+}
+
IOThread* BrowserProcessImpl::io_thread() {
DCHECK(CalledOnValidThread());
DCHECK(io_thread_.get());

Powered by Google App Engine
This is Rietveld 408576698