Adds a PageLoad user that gets recorded on every page load, exactly at the same time as the pageload count histogram is updated.
For background: this is what most people think the LoadURL user action does. It does not. LoadURL only gets recorded only on omnibox-mediated events. LoadURL is in fact useless because there are already omnibox event logs which cover the same space.
BUG=
Review URL: https://chromiumcodereview.appspot.com/10882022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154077 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index d89c9cba..aa99084e 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -196,6 +196,7 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/plugin_service.h"
#include "content/public/browser/render_process_host.h"
+#include "content/public/browser/user_metrics.h"
#include "net/base/load_flags.h"
#include "net/url_request/url_fetcher.h"
#include "webkit/plugins/webplugininfo.h"
@@ -1582,6 +1583,7 @@
}
void MetricsService::LogLoadStarted() {
+ content::RecordAction(content::UserMetricsAction("PageLoad"));
HISTOGRAM_ENUMERATION("Chrome.UmaPageloadCounter", 1, 2);
IncrementPrefValue(prefs::kStabilityPageLoadCount);
IncrementLongPrefsValue(prefs::kUninstallMetricsPageLoadCount);