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

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

Issue 12220146: AddedLogging to webstore private API for app launcher install. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | no next file » | 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 e1069beb734ded2883ba10bcf1c299495ddd02cf..0e424b48ddc5c12c25ae07d9d603b40217c94c2b 100644
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
@@ -440,12 +440,14 @@ bool CompleteInstallFunction::RunImpl() {
#if defined(OS_WIN)
if (approval_->enable_launcher) {
if (BrowserDistribution::GetDistribution()->AppHostIsSupported()) {
+ LOG(INFO) << "Enabling App Launcher via installation";
extensions::AppHostInstaller::SetInstallWithLauncher(true);
extensions::AppHostInstaller::EnsureAppHostInstalled(
base::Bind(&CompleteInstallFunction::AfterMaybeInstallAppLauncher,
this));
return true;
} else {
+ LOG(INFO) << "Enabling App Launcher via flags";
about_flags::SetExperimentEnabled(g_browser_process->local_state(),
switches::kShowAppListShortcut,
true);
@@ -458,6 +460,8 @@ bool CompleteInstallFunction::RunImpl() {
}
void CompleteInstallFunction::AfterMaybeInstallAppLauncher(bool ok) {
+ if (!ok)
+ LOG(ERROR) << "Error installing app launcher";
apps::GetIsAppLauncherEnabled(base::Bind(
&CompleteInstallFunction::OnGetAppLauncherEnabled, this,
approval_->extension_id));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698