Index: chrome/browser/ui/omnibox/omnibox_edit_model.cc |
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc |
index a1a9d538c4230eaf015dad2e4f85292bbbd0c0e4..ebc4077c77ecfcea51bd1d8f25785e49fc751c3b 100644 |
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc |
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc |
@@ -11,6 +11,7 @@ |
#include "base/format_macros.h" |
#include "base/metrics/histogram.h" |
#include "base/prefs/pref_service.h" |
+#include "base/profiler/scoped_tracker.h" |
#include "base/strings/string_number_conversions.h" |
#include "base/strings/string_util.h" |
#include "base/strings/stringprintf.h" |
@@ -553,6 +554,10 @@ void OmniboxEditModel::Revert() { |
void OmniboxEditModel::StartAutocomplete( |
bool has_selected_text, |
bool prevent_inline_autocomplete) { |
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/440919 is fixed. |
+ tracked_objects::ScopedTracker tracking_profile( |
+ FROM_HERE_WITH_EXPLICIT_FUNCTION( |
+ "440919 OmniboxEditModel::StartAutocomplete")); |
size_t cursor_position; |
if (inline_autocomplete_text_.empty()) { |
// Cursor position is equivalent to the current selection's end. |