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

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: Fix review comments 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 ba0054d32ec2631571a31778a84a68665796b179..4deefc3584464b5bd9c8f5ef5712dc9b80d49871 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -86,6 +86,7 @@
#include "content/browser/storage_partition_impl.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/tracing/trace_message_filter.h"
#include "content/browser/webui/web_ui_controller_factory_registry.h"
#include "content/browser/worker_host/worker_storage_partition.h"
@@ -609,6 +610,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::kDomAutomationController)) {
+ channel_->AddFilter(new StatsCollectionMessageFilter());
+ }
}
int RenderProcessHostImpl::GetNextRoutingID() {
« no previous file with comments | « no previous file | content/browser/stats_collection_message_filter.h » ('j') | content/browser/stats_collection_message_filter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698