Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(534)

Issue 208393020: Fix the new First Run sentinel file path determination. (Closed)

Created:
6 years, 9 months ago by msw
Modified:
6 years, 8 months ago
Reviewers:
gab, grt (UTC plus 2)
CC:
chromium-reviews, cpu_(ooo_6.6-7.5), sky, raymes
Visibility:
Public.

Description

Fix 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -110 lines) Patch
M chrome/browser/first_run/first_run.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 2 3 4 5 6 5 chunks +21 lines, -43 lines 0 comments Download
M chrome/browser/first_run/first_run_internal.h View 1 2 3 4 1 chunk +7 lines, -10 lines 0 comments Download
M chrome/browser/first_run/first_run_internal_posix.cc View 1 2 3 4 2 chunks +3 lines, -15 lines 0 comments Download
M chrome/browser/first_run/first_run_internal_win.cc View 1 2 3 4 5 1 chunk +19 lines, -12 lines 0 comments Download
M chrome/browser/first_run/first_run_unittest.cc View 1 2 3 4 2 chunks +5 lines, -8 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M chrome/installer/util/eula_util.cc View 1 2 3 4 3 chunks +1 line, -12 lines 0 comments Download
M chrome/installer/util/install_util.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/util/install_util.cc View 1 2 3 4 5 2 chunks +15 lines, -4 lines 2 comments Download

Messages

Total messages: 20 (0 generated)
msw
Hey Greg, please take a look; thanks! Gabriel, please take a look when you return; ...
6 years, 9 months ago (2014-03-24 23:40:56 UTC) #1
grt (UTC plus 2)
looks good overall. https://codereview.chromium.org/208393020/diff/20001/chrome/browser/first_run/first_run.cc File chrome/browser/first_run/first_run.cc (right): https://codereview.chromium.org/208393020/diff/20001/chrome/browser/first_run/first_run.cc#newcode577 chrome/browser/first_run/first_run.cc:577: base::FilePath first_run_sentinel; first_run_sentinel -> user_data_dir https://codereview.chromium.org/208393020/diff/20001/chrome/installer/setup/install.cc ...
6 years, 9 months ago (2014-03-25 17:37:06 UTC) #2
msw
Thanks for the tips, please take a fresh look! TBR'ing estade@ for the c/b/ui/webui update. ...
6 years, 9 months ago (2014-03-25 23:33:13 UTC) #3
msw
Gah, install_util is windows-specific... I'll need to change that, find a platform-agnostic location for this ...
6 years, 9 months ago (2014-03-26 00:57:08 UTC) #4
msw
Okay, please take a look now.
6 years, 9 months ago (2014-03-26 14:17:45 UTC) #5
grt (UTC plus 2)
On 2014/03/26 14:17:45, msw wrote: > Okay, please take a look now. If there's no ...
6 years, 9 months ago (2014-03-26 16:41:21 UTC) #6
msw
On 2014/03/26 16:41:21, grt wrote: > On 2014/03/26 14:17:45, msw wrote: > > Okay, please ...
6 years, 9 months ago (2014-03-27 01:16:05 UTC) #7
grt (UTC plus 2)
just some small comments remaining https://codereview.chromium.org/208393020/diff/150002/chrome/browser/first_run/first_run.cc File chrome/browser/first_run/first_run.cc (right): https://codereview.chromium.org/208393020/diff/150002/chrome/browser/first_run/first_run.cc#newcode549 chrome/browser/first_run/first_run.cc:549: return !path->empty(); it's not ...
6 years, 9 months ago (2014-03-27 15:35:19 UTC) #8
msw
Comments addressed; please take another look; thanks! https://codereview.chromium.org/208393020/diff/150002/chrome/browser/first_run/first_run.cc File chrome/browser/first_run/first_run.cc (right): https://codereview.chromium.org/208393020/diff/150002/chrome/browser/first_run/first_run.cc#newcode549 chrome/browser/first_run/first_run.cc:549: return !path->empty(); ...
6 years, 9 months ago (2014-03-28 00:04:10 UTC) #9
grt (UTC plus 2)
lgtm
6 years, 9 months ago (2014-03-28 01:37:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/208393020/200001
6 years, 9 months ago (2014-03-28 01:39:24 UTC) #11
msw
The CQ bit was unchecked by msw@chromium.org
6 years, 9 months ago (2014-03-28 17:19:41 UTC) #12
msw
The CQ bit was checked by msw@chromium.org
6 years, 9 months ago (2014-03-28 17:21:00 UTC) #13
msw
The CQ bit was checked by msw@chromium.org
6 years, 9 months ago (2014-03-28 19:32:04 UTC) #14
msw
On 2014/03/28 19:32:04, msw wrote: > The CQ bit was checked by mailto:msw@chromium.org The CQ ...
6 years, 9 months ago (2014-03-28 19:37:44 UTC) #15
msw
Committed patchset #7 manually as r260242 (presubmit successful).
6 years, 9 months ago (2014-03-28 19:39:59 UTC) #16
gab
This won't work for setup.exe; see comment below. It looks like this made M35 too ...
6 years, 8 months ago (2014-04-02 15:06:50 UTC) #17
grt (UTC plus 2)
https://codereview.chromium.org/208393020/diff/220001/chrome/installer/util/install_util.cc File chrome/installer/util/install_util.cc (right): https://codereview.chromium.org/208393020/diff/220001/chrome/installer/util/install_util.cc#newcode408 chrome/installer/util/install_util.cc:408: return !PathService::Get(chrome::DIR_USER_DATA, &user_data_dir) || On 2014/04/02 15:06:51, gab wrote: ...
6 years, 8 months ago (2014-04-02 16:42:11 UTC) #18
msw
On 2014/04/02 16:42:11, grt wrote: > https://codereview.chromium.org/208393020/diff/220001/chrome/installer/util/install_util.cc > File chrome/installer/util/install_util.cc (right): > > https://codereview.chromium.org/208393020/diff/220001/chrome/installer/util/install_util.cc#newcode408 > ...
6 years, 8 months ago (2014-04-02 16:44:10 UTC) #19
grt (UTC plus 2)
6 years, 8 months ago (2014-04-02 17:13:51 UTC) #20
Message was sent while issue was closed.
On 2014/04/02 16:44:10, msw wrote:
> Dang, I'm at jury selection today, so I can't try/investigate/fix this now.

Gab will file a bug and I'll send up a fix. I think it's a two-liner, so merging
will be simple. Have fun fulfilling your civic responsibility!

Powered by Google App Engine
This is Rietveld 408576698