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

Unified Diff: components/web_view/frame.cc

Issue 1421483003: mandoline: Start adding trace events for mandoline stuff. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 5 years, 2 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
« no previous file with comments | « components/web_view/find_controller.cc ('k') | mandoline/ui/desktop_ui/browser_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/frame.cc
diff --git a/components/web_view/frame.cc b/components/web_view/frame.cc
index f4edf2ff35ab6d61945b44e99a2cb14aec75516c..39077aeaaddd10f0eaf728bb6e8e0f722c6ba4d9 100644
--- a/components/web_view/frame.cc
+++ b/components/web_view/frame.cc
@@ -10,6 +10,7 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/stl_util.h"
+#include "base/trace_event/trace_event.h"
#include "components/mus/public/cpp/window.h"
#include "components/mus/public/cpp/window_property.h"
#include "components/web_view/frame_tree.h"
@@ -376,6 +377,9 @@ void Frame::OnCanNavigateFrame(
mojom::FrameClient* frame_client,
scoped_ptr<FrameUserData> user_data,
mus::mojom::WindowTreeClientPtr window_tree_client) {
+ TRACE_EVENT1("web_view", "Frame::OnCanNavigateFrame",
+ "url", url.possibly_invalid_spec());
+
DVLOG(2) << "Frame::OnCanNavigateFrame id=" << id_
<< " equal=" << (AreAppIdsEqual(app_id, app_id_) ? "true" : "false");
if (AreAppIdsEqual(app_id, app_id_)) {
« no previous file with comments | « components/web_view/find_controller.cc ('k') | mandoline/ui/desktop_ui/browser_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698