Commit 2788b5d7 authored by ssid's avatar ssid Committed by Commit Bot

Add trace event to debug jank in app banners

BUG=905919

Change-Id: I6024a41113845bd6e6b50d829a0ea2b4ab3e5efb
Reviewed-on: https://chromium-review.googlesource.com/c/1336527Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: ssid <ssid@chromium.org>
Cr-Commit-Position: refs/heads/master@{#608845}
parent d3708f20
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "base/command_line.h" #include "base/command_line.h"
#include "base/feature_list.h" #include "base/feature_list.h"
#include "base/time/default_tick_clock.h" #include "base/time/default_tick_clock.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h" #include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/browser_process.h" #include "chrome/browser/browser_process.h"
...@@ -268,7 +269,11 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) { ...@@ -268,7 +269,11 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
// --- Platform-specific tab helpers --- // --- Platform-specific tab helpers ---
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
banners::AppBannerManagerAndroid::CreateForWebContents(web_contents); {
// Remove after fixing https://crbug/905919
TRACE_EVENT0("browser", "AppBannerManagerAndroid::CreateForWebContents");
banners::AppBannerManagerAndroid::CreateForWebContents(web_contents);
}
ContextMenuHelper::CreateForWebContents(web_contents); ContextMenuHelper::CreateForWebContents(web_contents);
JavaScriptDialogTabHelper::CreateForWebContents(web_contents); JavaScriptDialogTabHelper::CreateForWebContents(web_contents);
if (OomInterventionTabHelper::IsEnabled()) { if (OomInterventionTabHelper::IsEnabled()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment