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

Unified Diff: chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc

Issue 8800029: GTK: Add TRACE_EVENTs around gtk ui events. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years 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/gtk/infobars/extension_infobar_gtk.cc
diff --git a/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc b/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc
index f3ce57c553b9ca1390a41ffdf0b3ce1172ecb46e..b0f4d97b586455bf35635d30c3e7f52353e17014 100644
--- a/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc
+++ b/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h"
+#include "base/debug/trace_event.h"
#include "chrome/browser/extensions/extension_context_menu_model.h"
#include "chrome/browser/extensions/extension_host.h"
#include "chrome/browser/platform_util.h"
@@ -192,6 +193,8 @@ gboolean ExtensionInfoBarGtk::OnButtonPress(GtkWidget* widget,
gboolean ExtensionInfoBarGtk::OnExpose(GtkWidget* sender,
GdkEventExpose* event) {
+ TRACE_EVENT0("ui::gtk", "ExtensionInfoBarGtk::OnExpose");
+
// We also need to draw our infobar arrows over the renderer.
static_cast<InfoBarContainerGtk*>(container())->
PaintInfobarBitsOn(sender, event, this);

Powered by Google App Engine
This is Rietveld 408576698