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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 12389073: Collect tab timing information for use in telementry-based startup tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: formatting/compile fix Created 7 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
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index a1ccbf6dc3838771d6937e222359091f6caad7c8..f9f27c65f57d89818baec4bbf779697d57265599 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -87,6 +87,7 @@
#include "content/browser/resolve_proxy_msg_helper.h"
#include "content/browser/speech/input_tag_speech_dispatcher_host.h"
#include "content/browser/speech/speech_recognition_dispatcher_host.h"
+#include "content/browser/stats_collection_message_filter.h"
#include "content/browser/storage_partition_impl.h"
#include "content/browser/tracing/trace_message_filter.h"
#include "content/browser/webui/web_ui_controller_factory_registry.h"
@@ -670,6 +671,11 @@ void RenderProcessHostImpl::CreateMessageFilters() {
channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
channel_->AddFilter(new HistogramMessageFilter());
channel_->AddFilter(new HyphenatorMessageFilter(this));
+
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kStatsCollectionExtension)) {
+ channel_->AddFilter(new StatsCollectionMessageFilter());
+ }
}
int RenderProcessHostImpl::GetNextRoutingID() {
@@ -813,6 +819,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
#endif
switches::kDisableWebSockets,
switches::kDomAutomationController,
+ switches::kStatsCollectionExtension,
switches::kEnableAccessibilityLogging,
switches::kEnableBrowserPluginForAllViewTypes,
switches::kEnableDCHECK,

Powered by Google App Engine
This is Rietveld 408576698