From ba45786f91135458a403a52be2aa88ac88fdd8bf Mon Sep 17 00:00:00 2001 From: "mirandac@chromium.org" Date: Tue, 15 Mar 2011 13:28:02 +0000 Subject: Add UMA logging to the NTP promo. Log whenever the NTP is created with the promo shown. BUG=76063 TEST=none Review URL: http://codereview.chromium.org/6681036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78203 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/webui/ntp_resource_cache.cc | 2 ++ chrome/tools/chromeactions.txt | 1 + 2 files changed, 3 insertions(+) (limited to 'chrome') diff --git a/chrome/browser/ui/webui/ntp_resource_cache.cc b/chrome/browser/ui/webui/ntp_resource_cache.cc index a5ec079..2d926b3 100644 --- a/chrome/browser/ui/webui/ntp_resource_cache.cc +++ b/chrome/browser/ui/webui/ntp_resource_cache.cc @@ -16,6 +16,7 @@ #include "base/utf_string_conversions.h" #include "base/values.h" #include "chrome/browser/google/google_util.h" +#include "chrome/browser/metrics/user_metrics.h" #include "chrome/browser/prefs/pref_service.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/themes/browser_theme_provider.h" @@ -386,6 +387,7 @@ void NTPResourceCache::CreateNewTabHTML() { profile_->GetPrefs()->GetDouble(prefs::kNTPPromoEnd)) ? profile_->GetPrefs()->GetString(prefs::kNTPPromoLine) : std::string()); + UserMetrics::RecordAction(UserMetricsAction("NTPPromoShown")); } base::StringPiece new_tab_html(ResourceBundle::GetSharedInstance(). diff --git a/chrome/tools/chromeactions.txt b/chrome/tools/chromeactions.txt index 908362f..966904f 100644 --- a/chrome/tools/chromeactions.txt +++ b/chrome/tools/chromeactions.txt @@ -841,6 +841,7 @@ 0x9372bb835cd720fb MoveWordForward 0x002e07cb5223cd33 MoveWordLeft 0xd55f7c4e520b18a4 MoveWordRight +0x0cdd043c5d63d234 NTPPromoShown 0xdcf1af37de1d8dd0 NativeUI_Applications 0x3c6e0d9310ba3a20 NewIncognitoWindow 0xeddaa38a10bf8374 NewProfileWindowByIndex -- cgit v1.1