diff --git a/net/cookies/cookie_monster.cc b/net/cookies/cookie_monster.cc index c3f118d54716..cd9c9b8f34da 100644 --- a/net/cookies/cookie_monster.cc +++ b/net/cookies/cookie_monster.cc @@ -1319,16 +1319,12 @@ std::string CookieMonster::GetCookiesWithOptions(const GURL& url, if (!HasCookieableScheme(url)) return std::string(); - TimeTicks start_time(TimeTicks::Now()); - std::vector cookies; FindCookiesForHostAndDomain(url, options, true, &cookies); std::sort(cookies.begin(), cookies.end(), CookieSorter); std::string cookie_line = BuildCookieLine(cookies); - histogram_time_get_->AddTime(TimeTicks::Now() - start_time); - VLOG(kVlogGetCookies) << "GetCookies() result: " << cookie_line; return cookie_line; @@ -2245,9 +2241,6 @@ void CookieMonster::InitializeHistograms() { base::Histogram::kUmaTargetedHistogramFlag); // From UMA_HISTOGRAM_{CUSTOM_,}TIMES - histogram_time_get_ = base::Histogram::FactoryTimeGet("Cookie.TimeGet", - base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(1), - 50, base::Histogram::kUmaTargetedHistogramFlag); histogram_time_blocked_on_load_ = base::Histogram::FactoryTimeGet( "Cookie.TimeBlockedOnLoad", base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(1), diff --git a/net/cookies/cookie_monster.h b/net/cookies/cookie_monster.h index 18d1b8a0bb56..0f00490ce7d7 100644 --- a/net/cookies/cookie_monster.h +++ b/net/cookies/cookie_monster.h @@ -635,7 +635,6 @@ class NET_EXPORT CookieMonster : public CookieStore { base::HistogramBase* histogram_domain_per_etldp1_count_; base::HistogramBase* histogram_number_duplicate_db_cookies_; base::HistogramBase* histogram_cookie_deletion_cause_; - base::HistogramBase* histogram_time_get_; base::HistogramBase* histogram_time_mac_; base::HistogramBase* histogram_time_blocked_on_load_; diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml index 414e37da8f23..1ba519af7448 100644 --- a/tools/metrics/histograms/histograms.xml +++ b/tools/metrics/histograms/histograms.xml @@ -3407,6 +3407,9 @@ Therefore, the affected-histogram name has to have at least one dot in it. + + Deprecated as of 11/2014. + Please list the metric's owners. Add more owner tags as needed. The amount of time (ms) to get cookies for each URL request.