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

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: Fixed OVERRIDE error Created 7 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 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 a3f465b5325bc4619d88c911b5ba1e840dd924f1..6b40b04a66391bf625aff1c2bafe5d5066ff1e74 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -285,6 +285,10 @@ void InstantController::ActiveTabChanged() {
}
void InstantController::TabDeactivated(content::WebContents* contents) {
+ // 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::ThemeInfoChanged(

Powered by Google App Engine
This is Rietveld 408576698