desktop-pwas: Remove GetCurrentPath from launcher
This change removes the unneeded function GetCurrentExecutablePath from the PWA launcher executable. Previously, this function got the current executable's path and then called base::NormalizeFilePath to preserve its capitalization. Preserving the file path's capitalization was left over from when the PWA launcher updated itself in-place, and therefore needed its filename exactly as displayed in order to create an updated file with that filename. With the removal of this unneeded call to base::NormalizeFilePath, the whole function is trivial and can be extracted into the rest of the code. This change also fixes LaunchResult::kMaxValue, which was incorrectly set to an enum value that was not the highest. Bug: 960245 Change-Id: If7d737d14f6cc56e0aab10a83fde8cd379e05ce0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2149945 Commit-Queue: Jesse McKenna <jessemckenna@google.com> Reviewed-by:David Bienvenu <davidbienvenu@chromium.org> Cr-Commit-Position: refs/heads/master@{#759082}
Showing
Please register or sign in to comment