Chromium Code Reviews| Index: chrome/browser/metrics/first_web_contents_profiler.cc |
| diff --git a/chrome/browser/metrics/first_web_contents_profiler.cc b/chrome/browser/metrics/first_web_contents_profiler.cc |
| index ae97bac1bed4d80caea5663f85161163524bca7c..2ff223b7ddecc9b694203a6b561346fa6aec80b9 100644 |
| --- a/chrome/browser/metrics/first_web_contents_profiler.cc |
| +++ b/chrome/browser/metrics/first_web_contents_profiler.cc |
| @@ -12,6 +12,8 @@ |
| #include "chrome/browser/ui/browser.h" |
| #include "chrome/browser/ui/browser_iterator.h" |
| #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| +#include "components/metrics/metrics_log.h" |
|
Ilya Sherman
2015/04/07 01:15:30
nit: This include seems wrong. If you just need t
vadimt
2015/04/07 21:44:14
Done.
|
| +#include "components/metrics/profiler/tracking_synchronizer.h" |
| scoped_ptr<FirstWebContentsProfiler> |
| FirstWebContentsProfiler::CreateProfilerForFirstWebContents( |
| @@ -51,6 +53,9 @@ void FirstWebContentsProfiler::DidFirstVisuallyNonEmptyPaint() { |
| elapsed); |
| } |
| + metrics::TrackingSynchronizer::OnProfilingPhaseCompletion( |
| + metrics::ProfilerEventProto::EVENT_FIRST_NONEMPTY_PAINT); |
| + |
| if (IsFinishedCollectingMetrics()) |
| FinishedCollectingMetrics(); |
| } |