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

Side by Side Diff: chrome/browser/ui/webui/metrics_handler.cc

Issue 2122903002: Move search-related files from chrome/common to chrome/common/search (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move search-related files Created 4 years, 5 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"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" 14 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
15 #include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h" 15 #include "chrome/browser/ui/webui/ntp/ntp_user_data_logger.h"
16 #include "chrome/common/ntp_logging_events.h" 16 #include "chrome/common/search/ntp_logging_events.h"
17 #include "content/public/browser/user_metrics.h" 17 #include "content/public/browser/user_metrics.h"
18 #include "content/public/browser/web_contents.h" 18 #include "content/public/browser/web_contents.h"
19 #include "content/public/browser/web_ui.h" 19 #include "content/public/browser/web_ui.h"
20 20
21 using base::ListValue; 21 using base::ListValue;
22 using base::UserMetricsAction; 22 using base::UserMetricsAction;
23 using content::WebContents; 23 using content::WebContents;
24 24
25 MetricsHandler::MetricsHandler() {} 25 MetricsHandler::MetricsHandler() {}
26 MetricsHandler::~MetricsHandler() {} 26 MetricsHandler::~MetricsHandler() {}
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 void MetricsHandler::HandleLogMouseover(const base::ListValue* args) { 110 void MetricsHandler::HandleLogMouseover(const base::ListValue* args) {
111 #if !defined(OS_ANDROID) 111 #if !defined(OS_ANDROID)
112 // Android uses native UI for NTP. 112 // Android uses native UI for NTP.
113 NTPUserDataLogger::GetOrCreateFromWebContents( 113 NTPUserDataLogger::GetOrCreateFromWebContents(
114 web_ui()->GetWebContents())->LogEvent(NTP_MOUSEOVER, 114 web_ui()->GetWebContents())->LogEvent(NTP_MOUSEOVER,
115 base::TimeDelta::FromMilliseconds(0)); 115 base::TimeDelta::FromMilliseconds(0));
116 #endif // !defined(OS_ANDROID) 116 #endif // !defined(OS_ANDROID)
117 } 117 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/search_tab_helper_unittest.cc ('k') | chrome/browser/ui/webui/ntp/ntp_user_data_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698