Commit c2d9ff76 authored by benwells@chromium.org's avatar benwells@chromium.org

AddedLogging to webstore private API for app launcher install.

This will help track down any problems with the installation process.

BUG=None


Review URL: https://chromiumcodereview.appspot.com/12220146

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182219 0039d316-1c4b-4281-b951-d872f2087c98
parent 5d502f8c
...@@ -440,12 +440,14 @@ bool CompleteInstallFunction::RunImpl() { ...@@ -440,12 +440,14 @@ bool CompleteInstallFunction::RunImpl() {
#if defined(OS_WIN) #if defined(OS_WIN)
if (approval_->enable_launcher) { if (approval_->enable_launcher) {
if (BrowserDistribution::GetDistribution()->AppHostIsSupported()) { if (BrowserDistribution::GetDistribution()->AppHostIsSupported()) {
LOG(INFO) << "Enabling App Launcher via installation";
extensions::AppHostInstaller::SetInstallWithLauncher(true); extensions::AppHostInstaller::SetInstallWithLauncher(true);
extensions::AppHostInstaller::EnsureAppHostInstalled( extensions::AppHostInstaller::EnsureAppHostInstalled(
base::Bind(&CompleteInstallFunction::AfterMaybeInstallAppLauncher, base::Bind(&CompleteInstallFunction::AfterMaybeInstallAppLauncher,
this)); this));
return true; return true;
} else { } else {
LOG(INFO) << "Enabling App Launcher via flags";
about_flags::SetExperimentEnabled(g_browser_process->local_state(), about_flags::SetExperimentEnabled(g_browser_process->local_state(),
switches::kShowAppListShortcut, switches::kShowAppListShortcut,
true); true);
...@@ -458,6 +460,8 @@ bool CompleteInstallFunction::RunImpl() { ...@@ -458,6 +460,8 @@ bool CompleteInstallFunction::RunImpl() {
} }
void CompleteInstallFunction::AfterMaybeInstallAppLauncher(bool ok) { void CompleteInstallFunction::AfterMaybeInstallAppLauncher(bool ok) {
if (!ok)
LOG(ERROR) << "Error installing app launcher";
apps::GetIsAppLauncherEnabled(base::Bind( apps::GetIsAppLauncherEnabled(base::Bind(
&CompleteInstallFunction::OnGetAppLauncherEnabled, this, &CompleteInstallFunction::OnGetAppLauncherEnabled, this,
approval_->extension_id)); approval_->extension_id));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment