Clean up time computation in SearchBox::LogEvent
LogEvent computes the time between the current event and navigation start. It gets the navigation start time from WebPerformance:: NavigationStart() which is a wall time (i.e. base::Time), but before this CL, it got the current time from base::TimeTicks::Now(). This CL fixes that by using base::Time::Now() instead and also cleans up the code a bit. I believe this is a pure cleanup, though I'm not entirely sure if the old way always delivered well-defined results. Bug: 777568 Change-Id: I81ed3e1fae2650a6bbc053ae8a4917a8e6c91f5e Reviewed-on: https://chromium-review.googlesource.com/776854 Commit-Queue: Marc Treib <treib@chromium.org> Reviewed-by:Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#517866}
Showing
Please register or sign in to comment