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

Unified Diff: chrome/browser/ui/webui/metrics_handler.cc

Issue 256763004: Remove WebUI NTP on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: newt's nits Created 6 years, 8 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/webui/metrics_handler.cc
diff --git a/chrome/browser/ui/webui/metrics_handler.cc b/chrome/browser/ui/webui/metrics_handler.cc
index 4c0f944cf64b2462c93d33052d8e41eca8e22a84..99fb59292954a1784da0d3e8830a4fa5e1705350 100644
--- a/chrome/browser/ui/webui/metrics_handler.cc
+++ b/chrome/browser/ui/webui/metrics_handler.cc
@@ -116,6 +116,9 @@ void MetricsHandler::HandleLogEventTime(const base::ListValue* args) {
}
void MetricsHandler::HandleLogMouseover(const base::ListValue* args) {
+#if !defined(OS_ANDROID)
+ // Android uses native UI for NTP.
NTPUserDataLogger::GetOrCreateFromWebContents(
web_ui()->GetWebContents())->LogEvent(NTP_MOUSEOVER);
+#endif // !defined(OS_ANDROID)
}
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc ('k') | chrome/browser/ui/webui/ntp/android/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698