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

Unified Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.cc

Issue 15715003: Make app launcher Chrome Store UMA consistent with NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bs Created 7 years, 7 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/ui/webui/ntp/app_launcher_handler.h ('k') | chrome/common/extensions/extension_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp/app_launcher_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
index 952de949d5ece75696b9398c4a480c8f46e049da..9e1c87fed2f2e8b236ec99d29f662068695e1a0a 100644
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
@@ -755,6 +755,28 @@ void AppLauncherHandler::RecordAppLaunchType(
}
// static
+void AppLauncherHandler::RecordAppListSearchLaunch(const Extension* extension) {
+ extension_misc::AppLaunchBucket bucket =
+ extension_misc::APP_LAUNCH_APP_LIST_SEARCH;
+ if (extension->id() == extension_misc::kWebStoreAppId)
+ bucket = extension_misc::APP_LAUNCH_APP_LIST_SEARCH_WEBSTORE;
+ else if (extension->id() == extension_misc::kChromeAppId)
+ bucket = extension_misc::APP_LAUNCH_APP_LIST_SEARCH_CHROME;
+ AppLauncherHandler::RecordAppLaunchType(bucket, extension->GetType());
+}
+
+// static
+void AppLauncherHandler::RecordAppListMainLaunch(const Extension* extension) {
+ extension_misc::AppLaunchBucket bucket =
+ extension_misc::APP_LAUNCH_APP_LIST_MAIN;
+ if (extension->id() == extension_misc::kWebStoreAppId)
+ bucket = extension_misc::APP_LAUNCH_APP_LIST_MAIN_WEBSTORE;
+ else if (extension->id() == extension_misc::kChromeAppId)
+ bucket = extension_misc::APP_LAUNCH_APP_LIST_MAIN_CHROME;
+ AppLauncherHandler::RecordAppLaunchType(bucket, extension->GetType());
+}
+
+// static
void AppLauncherHandler::RecordWebStoreLaunch() {
RecordAppLaunchType(extension_misc::APP_LAUNCH_NTP_WEBSTORE,
extensions::Manifest::TYPE_HOSTED_APP);
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_launcher_handler.h ('k') | chrome/common/extensions/extension_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698