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

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

Issue 17526008: Log NTP hovers in 1993 clients (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 7 years, 6 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/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index cae96060ec4c6f4ba2240494300524ee76509966..977f129a2ec574682e57c0755876c873638564d8 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -1039,6 +1039,11 @@ void InstantController::TabDeactivated(content::WebContents* contents) {
if (GetOverlayContents())
HideOverlay();
+
+ // If user is deactivating an NTP tab, log the number of mouseovers for this
+ // NTP session.
+ if (chrome::IsInstantNTP(contents))
+ InstantNTP::EmitMouseoverCount(contents);
}
void InstantController::SetInstantEnabled(bool instant_enabled,

Powered by Google App Engine
This is Rietveld 408576698