diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-15 13:28:02 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-15 13:28:02 +0000 |
commit | ba45786f91135458a403a52be2aa88ac88fdd8bf (patch) | |
tree | c6c36754c2d6b5ab12c4c79ea6e614172a90fd82 /chrome | |
parent | c78886e2e27cadaf4585838034c1fdc20300725c (diff) | |
download | chromium_src-ba45786f91135458a403a52be2aa88ac88fdd8bf.zip chromium_src-ba45786f91135458a403a52be2aa88ac88fdd8bf.tar.gz chromium_src-ba45786f91135458a403a52be2aa88ac88fdd8bf.tar.bz2 |
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
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/ui/webui/ntp_resource_cache.cc | 2 | ||||
-rw-r--r-- | chrome/tools/chromeactions.txt | 1 |
2 files changed, 3 insertions, 0 deletions
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 |