Prompt for extension install on startup even when --force-app-mode is passed

This ensures that extensions installed with --install-from-webstore still show
an install prompt.

BUG=342949
TEST=See bug for repro
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250900 0039d316-1c4b-4281-b951-d872f2087c98
parent a7641494
...@@ -293,9 +293,8 @@ bool StartupHelper::InstallFromWebstore(const CommandLine& cmd_line, ...@@ -293,9 +293,8 @@ bool StartupHelper::InstallFromWebstore(const CommandLine& cmd_line,
} }
AppInstallHelper helper; AppInstallHelper helper;
helper.BeginInstall(profile, id, helper.BeginInstall(
!cmd_line.HasSwitch(switches::kForceAppMode), profile, id, true, base::MessageLoop::QuitWhenIdleClosure());
base::MessageLoop::QuitWhenIdleClosure());
base::MessageLoop::current()->Run(); base::MessageLoop::current()->Run();
if (!helper.success()) if (!helper.success())
......
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