desktop-pwas: Fix missing empty config dir check when loading preinstalled web apps
This CL replaces a check that was accidentally removed by: https://chromium-review.googlesource.com/c/chromium/src/+/2422022 Specifically the lines: const base::FilePath dir = DetermineScanDir(profile_); if (dir.empty()) { std::move(callback).Run(std::vector<ExternalInstallOptions>()); return; } Without this check Chrome would attempt to read json files in its own installation directory on non-Chrome OS platforms. Bug: 1157424 Change-Id: I351ad24d13c1ce394660f74013d094adef2a02f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2585257 Commit-Queue: Alan Cutter <alancutter@chromium.org> Reviewed-by:Glen Robertson <glenrob@chromium.org> Cr-Commit-Position: refs/heads/master@{#836532}
Showing
Please register or sign in to comment