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

Unified Diff: chrome/browser/ui/search/search_tab_helper.cc

Issue 1006753003: Add time from navigation_start to NTP LogEvent (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/browser/ui/search/search_tab_helper.cc
diff --git a/chrome/browser/ui/search/search_tab_helper.cc b/chrome/browser/ui/search/search_tab_helper.cc
index 3c4af9745d0404d84336acba969a3fbac9c248e9..ea0a2c821eef37fae3a49ed00a251569fa564931 100644
--- a/chrome/browser/ui/search/search_tab_helper.cc
+++ b/chrome/browser/ui/search/search_tab_helper.cc
@@ -478,11 +478,12 @@ void SearchTabHelper::OnUndoAllMostVisitedDeletions() {
instant_service_->UndoAllMostVisitedDeletions();
}
-void SearchTabHelper::OnLogEvent(NTPLoggingEventType event) {
+void SearchTabHelper::OnLogEvent(NTPLoggingEventType event,
+ base::TimeDelta time) {
// TODO(kmadhusu): Move platform specific code from here and get rid of #ifdef.
#if !defined(OS_ANDROID)
- NTPUserDataLogger::GetOrCreateFromWebContents(
- web_contents())->LogEvent(event);
+ NTPUserDataLogger::GetOrCreateFromWebContents(web_contents())
+ ->LogEvent(event, time);
#endif
}
« no previous file with comments | « chrome/browser/ui/search/search_tab_helper.h ('k') | chrome/browser/ui/search/search_tab_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698