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

Side by Side Diff: chrome/browser/ui/webui/metrics_handler.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/metrics_handler.h" 5 #include "chrome/browser/ui/webui/metrics_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 CoreTabHelper* core_tab_helper = CoreTabHelper::FromWebContents(tab); 102 CoreTabHelper* core_tab_helper = CoreTabHelper::FromWebContents(tab);
103 core_tab_helper->set_new_tab_start_time(base::TimeTicks()); 103 core_tab_helper->set_new_tab_start_time(base::TimeTicks());
104 } else { 104 } else {
105 NOTREACHED(); 105 NOTREACHED();
106 } 106 }
107 } 107 }
108 108
109 void MetricsHandler::HandleLogMouseover(const base::ListValue* args) { 109 void MetricsHandler::HandleLogMouseover(const base::ListValue* args) {
110 #if !defined(OS_ANDROID) 110 #if !defined(OS_ANDROID)
111 // Android uses native UI for NTP. 111 // Android uses native UI for NTP.
112 NTPUserDataLogger::GetOrCreateFromWebContents( 112 NTPUserDataLogger::GetOrCreateFromWebContents(web_ui()->GetWebContents())
113 web_ui()->GetWebContents())->LogEvent(NTP_MOUSEOVER); 113 ->LogEvent(NTP_MOUSEOVER, 0);
114 #endif // !defined(OS_ANDROID) 114 #endif // !defined(OS_ANDROID)
115 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698