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

Unified Diff: chrome/browser/ui/app_list/extension_app_item.cc

Issue 25859005: Elim ActivateAppListItem, ChromeAppListItem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fixes Created 7 years, 2 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/app_list/extension_app_item.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/extension_app_item.cc
diff --git a/chrome/browser/ui/app_list/extension_app_item.cc b/chrome/browser/ui/app_list/extension_app_item.cc
index 1680086219d135834e08008c49ea1366e0efc957..b1e61c869a838c1c04d225b5e9fd32e9b63f2ad0 100644
--- a/chrome/browser/ui/app_list/extension_app_item.cc
+++ b/chrome/browser/ui/app_list/extension_app_item.cc
@@ -19,6 +19,7 @@
#include "chrome/common/extensions/extension_icon_set.h"
#include "chrome/common/extensions/manifest_handlers/icons_handler.h"
#include "chrome/common/extensions/manifest_url_handler.h"
+#include "content/public/browser/user_metrics.h"
#include "grit/theme_resources.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
@@ -71,8 +72,7 @@ ExtensionAppItem::ExtensionAppItem(Profile* profile,
const std::string& extension_name,
const gfx::ImageSkia& installing_icon,
bool is_platform_app)
- : ChromeAppListItem(TYPE_APP),
- profile_(profile),
+ : profile_(profile),
extension_id_(extension_id),
controller_(controller),
extension_name_(extension_name),
@@ -263,6 +263,7 @@ void ExtensionAppItem::Activate(int event_flags) {
if (RunExtensionEnableFlow())
return;
+ content::RecordAction(content::UserMetricsAction("AppList_ClickOnApp"));
CoreAppLauncherHandler::RecordAppListMainLaunch(extension);
controller_->ActivateApp(profile_,
extension,
« no previous file with comments | « chrome/browser/ui/app_list/extension_app_item.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698