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

Unified Diff: chrome/browser/autocomplete/history_quick_provider.cc

Issue 1132333004: [Omnibox] Remove unused histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing #include Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/history_quick_provider.cc
diff --git a/chrome/browser/autocomplete/history_quick_provider.cc b/chrome/browser/autocomplete/history_quick_provider.cc
index 57c86ae941be2873682a6e59bd1dba06fb1e9cfc..1871bf2ba8947a5cd7a2c5b6519d5780a542965e 100644
--- a/chrome/browser/autocomplete/history_quick_provider.cc
+++ b/chrome/browser/autocomplete/history_quick_provider.cc
@@ -12,12 +12,10 @@
#include "base/i18n/break_iterator.h"
#include "base/logging.h"
#include "base/metrics/field_trial.h"
-#include "base/metrics/histogram.h"
#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
-#include "base/time/time.h"
#include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
#include "chrome/browser/autocomplete/history_url_provider.h"
#include "chrome/browser/autocomplete/in_memory_url_index.h"
@@ -75,16 +73,7 @@ void HistoryQuickProvider::Start(const AutocompleteInput& input,
// someone unloads the history backend, we'll get inconsistent inline
// autocomplete behavior here.
if (in_memory_url_index_) {
- base::TimeTicks start_time = base::TimeTicks::Now();
DoAutocomplete();
- if (input.text().length() < 6) {
- base::TimeTicks end_time = base::TimeTicks::Now();
- std::string name = "HistoryQuickProvider.QueryIndexTime." +
- base::IntToString(input.text().length());
- base::HistogramBase* counter = base::Histogram::FactoryGet(
- name, 1, 1000, 50, base::Histogram::kUmaTargetedHistogramFlag);
- counter->Add(static_cast<int>((end_time - start_time).InMilliseconds()));
- }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698