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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 2526643002: Re-enable rappor for vrshell (Closed)
Patch Set: CR feedback Created 4 years, 1 month 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/browser/android/vr_shell/vr_usage_monitor.cc ('k') | components/rappor/rappor_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 833e75d789cefa1bca610624824c53ee8fae8306..fb27d85ab22901a42d1808b3785b804d65d5bd46 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -98,6 +98,7 @@
#include "components/prefs/json_pref_store.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
+#include "components/rappor/rappor_utils.h"
#include "components/safe_json/safe_json_parser.h"
#include "components/signin/core/common/profile_management_switches.h"
#include "components/subresource_filter/content/browser/content_ruleset_service_delegate.h"
@@ -198,6 +199,12 @@ using content::ChildProcessSecurityPolicy;
using content::PluginService;
using content::ResourceDispatcherHost;
+rappor::RapporService* GetBrowserRapporService() {
+ if (g_browser_process != nullptr)
+ return g_browser_process->rappor_service();
+ return nullptr;
+}
+
BrowserProcessImpl::BrowserProcessImpl(
base::SequencedTaskRunner* local_state_task_runner,
const base::CommandLine& command_line)
@@ -216,6 +223,7 @@ BrowserProcessImpl::BrowserProcessImpl(
local_state_task_runner_(local_state_task_runner),
cached_default_web_client_state_(shell_integration::UNKNOWN_DEFAULT) {
g_browser_process = this;
+ rappor::SetDefaultServiceAccessor(&GetBrowserRapporService);
platform_part_.reset(new BrowserProcessPlatformPart());
#if BUILDFLAG(ENABLE_PRINTING)
« no previous file with comments | « chrome/browser/android/vr_shell/vr_usage_monitor.cc ('k') | components/rappor/rappor_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698