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

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: this time actually fixing merge error correctly 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
« no previous file with comments | « chrome/browser/metrics/metrics_log.cc ('k') | chrome/browser/search_engines/template_url_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_service.cc
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index 3e8d17a19834881a295cd3887b8403180b2a2319..5c6a8e2277b496a67a2819ffb1b1c7c1df67936e 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -1514,16 +1514,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"));
- }
- }
}
void MetricsService::LogRendererCrash(content::RenderProcessHost* host,
« no previous file with comments | « chrome/browser/metrics/metrics_log.cc ('k') | chrome/browser/search_engines/template_url_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698