Index: components/omnibox/browser/autocomplete_controller.cc |
diff --git a/components/omnibox/browser/autocomplete_controller.cc b/components/omnibox/browser/autocomplete_controller.cc |
index df7990d9d3a932a1a58398f4c651963aad3c98f7..19be64e4f028381da1db02273df89b7138cb1dbd 100644 |
--- a/components/omnibox/browser/autocomplete_controller.cc |
+++ b/components/omnibox/browser/autocomplete_controller.cc |
@@ -14,7 +14,9 @@ |
#include "base/metrics/histogram.h" |
#include "base/strings/string_number_conversions.h" |
#include "base/strings/stringprintf.h" |
+#include "base/strings/utf_string_conversions.h" |
#include "base/time/time.h" |
+#include "base/trace_event/trace_event.h" |
#include "build/build_config.h" |
#include "components/omnibox/browser/autocomplete_controller_delegate.h" |
#include "components/omnibox/browser/bookmark_provider.h" |
@@ -231,6 +233,8 @@ AutocompleteController::~AutocompleteController() { |
} |
void AutocompleteController::Start(const AutocompleteInput& input) { |
+ TRACE_EVENT1("omnibox", "AutocompleteController::Start", |
+ "text", base::UTF16ToUTF8(input.text())); |
const base::string16 old_input_text(input_.text()); |
const bool old_want_asynchronous_matches = input_.want_asynchronous_matches(); |
const bool old_from_omnibox_focus = input_.from_omnibox_focus(); |
@@ -395,6 +399,7 @@ void AutocompleteController::UpdateMatchDestinationURL( |
void AutocompleteController::UpdateResult( |
bool regenerate_result, |
bool force_notify_default_match_changed) { |
+ TRACE_EVENT0("omnibox", "AutocompleteController::UpdateResult"); |
const bool last_default_was_valid = result_.default_match() != result_.end(); |
// The following three variables are only set and used if |
// |last_default_was_valid|. |