| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |