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

Unified Diff: chrome/browser/ui/tab_helpers.cc

Issue 2101743002: Observe input metrics from web content area. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update service logic for visibility stuff; add debug logging Created 4 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/tab_helpers.cc
diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
index 1790123cf3de81cc92a57ebc0d79d43df7a640be..a2ac5e05b4de63680f80701483c9a47648980a46 100644
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/history/history_tab_helper.h"
#include "chrome/browser/history/top_sites_factory.h"
#include "chrome/browser/infobars/infobar_service.h"
+#include "chrome/browser/metrics/desktop_engagement_observer.h"
#include "chrome/browser/net/net_error_tab_helper.h"
#include "chrome/browser/net/predictor_tab_helper.h"
#include "chrome/browser/page_load_metrics/page_load_metrics_initialize.h"
@@ -180,6 +181,8 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
// is taken over by ChromeContentSettingsClient. http://crbug.com/387075
TabSpecificContentSettings::CreateForWebContents(web_contents);
+ DesktopEngagementObserver::CreateForWebContents(web_contents);
+
// --- Platform-specific tab helpers ---
#if BUILDFLAG(ANDROID_JAVA_UI)
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/views/frame/browser_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698