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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1213523003: [ETW Export] Add polling for ETW keyword. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 1206fd6954df1d5dbf9712eddb9c0562f66a8b86..59a0e309ed5254451f9f831c65f508f54627cf01 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -26,6 +26,7 @@
#include "base/timer/hi_res_timer_manager.h"
#include "base/trace_event/memory_dump_manager.h"
#include "base/trace_event/trace_event.h"
+#include "base/trace_event/trace_event_etw_export_win.h"
#include "content/browser/browser_thread_impl.h"
#include "content/browser/device_sensors/device_inertial_sensor_service.h"
#include "content/browser/dom_storage/dom_storage_area.h"
@@ -697,6 +698,12 @@ int BrowserMainLoop::PreCreateThreads() {
RenderProcessHost::SetRunRendererInProcess(true);
#endif
+#if defined(OS_WIN)
+ // Starts a timer to poll the ETW keyword (flags), that checks if a consumer
+ // is listening and if the categories have changed.
+ base::trace_event::TraceEventETWExport::StartKeywordUpdateTimer();
brucedawson 2015/06/26 22:24:24 Does this get called in just the browser or in all
+#endif
+
return result_code_;
}
« base/trace_event/trace_event_etw_export_win.cc ('K') | « base/trace_event/trace_event_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698