Commit 3c6b0696 authored by achuith's avatar achuith Committed by Commit bot

Wait for pending extensions before launching kiosk app.

BUG=431934
TEST=browser tests

Review URL: https://codereview.chromium.org/860273006

Cr-Commit-Position: refs/heads/master@{#314371}
parent 8c46f7e1
...@@ -272,8 +272,13 @@ void StartupAppLauncher::MaybeLaunchApp() { ...@@ -272,8 +272,13 @@ void StartupAppLauncher::MaybeLaunchApp() {
void StartupAppLauncher::OnFinishCrxInstall(const std::string& extension_id, void StartupAppLauncher::OnFinishCrxInstall(const std::string& extension_id,
bool success) { bool success) {
if (extension_id != app_id_) // Wait for pending updates or dependent extensions to download.
if (extensions::ExtensionSystem::Get(profile_)
->extension_service()
->pending_extension_manager()
->HasPendingExtensions()) {
return; return;
}
extensions::InstallTracker* tracker = extensions::InstallTracker* tracker =
extensions::InstallTrackerFactory::GetForBrowserContext(profile_); extensions::InstallTrackerFactory::GetForBrowserContext(profile_);
......
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