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

Unified Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc

Issue 143683004: Add UMA to track app launcher discoverability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix official build Created 6 years, 10 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 | « no previous file | chrome/browser/ui/app_list/app_list_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
index 95dfcd6c769b49ec1541dc3c8a5bcb12402a7e33..1a20ed9c89f93c5f018a9f30041cb152afe7487f 100644
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
@@ -553,8 +553,10 @@ bool WebstorePrivateCompleteInstallFunction::RunImpl() {
AppListService* app_list_service =
AppListService::Get(GetCurrentBrowser()->host_desktop_type());
- if (approval_->enable_launcher)
- app_list_service->EnableAppList(GetProfile());
+ if (approval_->enable_launcher) {
+ app_list_service->EnableAppList(GetProfile(),
+ AppListService::ENABLE_FOR_APP_INSTALL);
+ }
if (IsAppLauncherEnabled() && approval_->manifest->is_app()) {
// Show the app list to show download is progressing. Don't show the app
@@ -562,7 +564,7 @@ bool WebstorePrivateCompleteInstallFunction::RunImpl() {
if (approval_->enable_launcher)
app_list_service->CreateForProfile(GetProfile());
else
- app_list_service->ShowForProfile(GetProfile());
+ app_list_service->AutoShowForProfile(GetProfile());
}
// The extension will install through the normal extension install flow, but
@@ -621,8 +623,8 @@ WebstorePrivateEnableAppLauncherFunction::
~WebstorePrivateEnableAppLauncherFunction() {}
bool WebstorePrivateEnableAppLauncherFunction::RunImpl() {
- AppListService::Get(GetCurrentBrowser()->host_desktop_type())->
- EnableAppList(GetProfile());
+ AppListService::Get(GetCurrentBrowser()->host_desktop_type())
+ ->EnableAppList(GetProfile(), AppListService::ENABLE_VIA_WEBSTORE_LINK);
return true;
}
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698