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

Unified Diff: components/web_view/find_controller.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/html_viewer/html_frame.cc ('k') | components/web_view/frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/find_controller.cc
diff --git a/components/web_view/find_controller.cc b/components/web_view/find_controller.cc
index aa39d15f87da41faa96bf2519b5920e92ddb6244..77c30bad0cfa23be38f8bd0dcbed9120f5788742 100644
--- a/components/web_view/find_controller.cc
+++ b/components/web_view/find_controller.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/strings/string_util.h"
+#include "base/trace_event/trace_event.h"
#include "components/web_view/find_controller_delegate.h"
#include "components/web_view/frame.h"
@@ -22,6 +23,9 @@ FindController::~FindController() {}
void FindController::Find(const std::string& in_search_string,
bool forward_direction) {
+ TRACE_EVENT2("web_view", "FindController::Find",
+ "search_string", in_search_string,
+ "forward_direction", forward_direction);
std::string search_string = in_search_string;
// Remove the carriage return character, which generally isn't in web content.
const char kInvalidChars[] = {'\r', 0};
@@ -124,6 +128,9 @@ void FindController::OnContinueFinding(int32_t request_id,
uint32_t starting_frame,
uint32_t current_frame,
bool found) {
+ TRACE_EVENT2("web_view", "FindController::OnContinueFinding",
+ "request_id", request_id,
+ "search_string", search_string);
if (!found) {
// So we need to figure out what the next frame to search is.
Frame* next_frame =
« no previous file with comments | « components/html_viewer/html_frame.cc ('k') | components/web_view/frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698