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

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 7 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: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 09e20ef91bf4dbae1cea170470cefbdbb0f5acc1..ab63c9e7c2762c747bf3afdc987be21e1391e92d 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -79,6 +79,7 @@
#include "chrome/common/switch_utils.h"
#include "chrome/common/url_constants.h"
#include "chrome/installer/util/google_update_constants.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"
@@ -435,6 +436,14 @@ MetricsService* BrowserProcessImpl::metrics_service() {
return metrics_service_.get();
}
+rappor::RapporService* BrowserProcessImpl::rappor_service() {
+ DCHECK(CalledOnValidThread());
+ if (!rappor_service_.get()) {
Alexei Svitkine (slow) 2013/12/19 19:47:02 Nit: No {}s
Steven Holte 2013/12/20 03:03:55 Done.
+ 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