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

Unified Diff: chrome/renderer/searchbox/searchbox.cc

Issue 1007383003: Adds a new UMA histogram to measure the NTP load time since navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: chrome/renderer/searchbox/searchbox.cc
diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
index 87084c720bb7b6ee0a2fd792b5ed5c06f396990c..4748d5ca92b4e7de6476bf56994f6ef4df04f5cc 100644
--- a/chrome/renderer/searchbox/searchbox.cc
+++ b/chrome/renderer/searchbox/searchbox.cc
@@ -162,11 +162,11 @@ SearchBox::~SearchBox() {
void SearchBox::LogEvent(NTPLoggingEventType event) {
// navigation_start in ms.
uint64 start = 1000 *
- render_view()
- ->GetMainRenderFrame()
- ->GetWebFrame()
- ->performance()
- .navigationStart();
+ render_view()
+ ->GetMainRenderFrame()
+ ->GetWebFrame()
+ ->performance()
+ .navigationStart();
uint64 now =
(base::TimeTicks::Now() - base::TimeTicks::UnixEpoch()).InMilliseconds();
DCHECK(now >= start);

Powered by Google App Engine
This is Rietveld 408576698