diff options
author | asvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-27 21:14:19 +0000 |
---|---|---|
committer | asvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-27 21:14:19 +0000 |
commit | 233f0f96effe43f4dd9f22124df54ce27f7c149e (patch) | |
tree | bbb9bf5ecb59ee8d5e9f6bae921259c11dceaf6d /chrome/browser | |
parent | ed9f9cd8516eee1fac01379dc7fd0be4fb63e5c4 (diff) | |
download | chromium_src-233f0f96effe43f4dd9f22124df54ce27f7c149e.zip chromium_src-233f0f96effe43f4dd9f22124df54ce27f7c149e.tar.gz chromium_src-233f0f96effe43f4dd9f22124df54ce27f7c149e.tar.bz2 |
Add an UMA action to record when the InstantExtended NTP is opened.
BUG=178525
Review URL: https://chromiumcodereview.appspot.com/12342040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185037 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/ui/browser_instant_controller.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc index aea76fa..1027ece 100644 --- a/chrome/browser/ui/browser_instant_controller.cc +++ b/chrome/browser/ui/browser_instant_controller.cc @@ -25,16 +25,21 @@ #include "chrome/common/pref_names.h" #include "chrome/common/url_constants.h" #include "content/public/browser/notification_service.h" +#include "content/public/browser/user_metrics.h" #include "grit/theme_resources.h" #include "ui/gfx/color_utils.h" #include "ui/gfx/sys_color_change_listener.h" +using content::UserMetricsAction; + namespace { + const char* GetInstantPrefName(Profile* profile) { return chrome::search::IsInstantExtendedAPIEnabled(profile) ? prefs::kInstantExtendedEnabled : prefs::kInstantEnabled; } -} + +} // namespace namespace chrome { @@ -133,6 +138,7 @@ bool BrowserInstantController::MaybeSwapInInstantNTPContents( // inserting instant_ntp into the tabstrip and will take ownership. ignore_result(instant_ntp.release()); } + content::RecordAction(UserMetricsAction("InstantExtended.ShowNTP")); return true; } |