DescriptionFix the new First Run sentinel file path determination.
Add first_run/InstallHelper GetFirstRunSentinelFilePath helpers.
Use PathService to get the correct value of DIR_USER_DATA.
(may be overridden by a policy, env var, or commandline)
(InstallUtil::GetSentinelFilePath just uses the default dir)
Make the IsFirstRunSentinelPresent helper platform-specific.
(simplifies its predecessor's Win-specific legacy abstractions)
Some related refactoring, cleanup, and test updates.
TODO(msw): Fix InstallUtil::GetSentinelFilePath.
TODO(msw): Fix/Nix installer::GetChromeUserDataPaths.
TODO(msw): Further consolidate related/duplicated code.
BUG=354634, 341049
TEST=Chrome install and first run work as intended; respect user-data-dir commandline, env var, and policy overrides.
R=grt@chromium.org
TBR=gab@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260242
Patch Set 1 #Patch Set 2 : Cleanup. #
Total comments: 5
Patch Set 3 : Reorganize and consolidate the first run sentinel code. #Patch Set 4 : Fix unit test; cleanup. #Patch Set 5 : Simplify changes. #
Total comments: 12
Patch Set 6 : Address comments. #Patch Set 7 : Sync and rebase; re-upload to kick CQ. #
Total comments: 2
Messages
Total messages: 20 (0 generated)
|