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

Unified Diff: chrome/browser/metrics/metrics_service.cc

Issue 21395002: [InstantExtended] Fixing how PageLoadSRP is emitted. Previously it was emitted only for Instant sea… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary include Created 7 years, 4 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
Index: chrome/browser/metrics/metrics_service.cc
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index d48eb7b747a3fd64c839d25958b888d10d4cbce1..746e571af254abf4119212e0717e222528c91dd2 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -1513,16 +1513,6 @@ void MetricsService::LogLoadStarted(content::WebContents* web_contents) {
IncrementLongPrefsValue(prefs::kUninstallMetricsPageLoadCount);
// We need to save the prefs, as page load count is a critical stat, and it
// might be lost due to a crash :-(.
-
- // Track whether the page loaded is a search results page.
- if (web_contents) {
- SearchTabHelper* search_tab_helper =
- SearchTabHelper::FromWebContents(web_contents);
- if (search_tab_helper) {
- if (search_tab_helper->model()->mode().is_search_results())
- content::RecordAction(content::UserMetricsAction("PageLoadSRP"));
Peter Kasting 2013/08/06 21:32:19 If you're eliminating this, mark it obsolete in hi
rpetterson 2013/08/06 23:04:17 It's an action, not a histogram. According to Mark
- }
- }
}
void MetricsService::LogRendererCrash(content::RenderProcessHost* host,

Powered by Google App Engine
This is Rietveld 408576698