|
|
Created:
4 years, 3 months ago by michaelpg Modified:
4 years, 2 months ago Reviewers:
Peter Beverloo CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, jochen+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptioncontent_shell/app_shell: validate --data-path and fall back to default directory
The --data-path switch, if passed, specifies what directory to use as the browsing
context's data directory. This CL checks that the directory actually exists/can be
created, and converts relative paths to absolute.
Note: This code is executed twice in content_shell (for normal and OTR contexts); in
the long run, giving the shell its own PathProvider may be a better solution.
Committed: https://crrev.com/49a54b594e0c9f6d3ea60d1f21e90507c21423e2
Cr-Commit-Position: refs/heads/master@{#422670}
Patch Set 1 #Patch Set 2 : check for directory #Patch Set 3 : logging #
Total comments: 2
Patch Set 4 : comment #Patch Set 5 : rebase #Messages
Total messages: 20 (13 generated)
The CQ bit was checked by michaelpg@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Description was changed from ========== Allow relative --data-path in content_shell/app_shell and fall back to default directory BUG= ========== to ========== Allow relative --data-path in content_shell/app_shell; fall back to default directory The --data-path switch, if passed, specifies what directory to use as the browsing context's data directory. This CL checks that the directory actually exists/can be created, and converts relative paths to absolute. Note: This code is executed twice in content_shell (for normal and OTR contexts); in the long run, giving the shell its own PathProvider may be a better solution. ==========
Description was changed from ========== Allow relative --data-path in content_shell/app_shell; fall back to default directory The --data-path switch, if passed, specifies what directory to use as the browsing context's data directory. This CL checks that the directory actually exists/can be created, and converts relative paths to absolute. Note: This code is executed twice in content_shell (for normal and OTR contexts); in the long run, giving the shell its own PathProvider may be a better solution. ========== to ========== content_shell/app_shell: validate --data-path and fall back to default directory The --data-path switch, if passed, specifies what directory to use as the browsing context's data directory. This CL checks that the directory actually exists/can be created, and converts relative paths to absolute. Note: This code is executed twice in content_shell (for normal and OTR contexts); in the long run, giving the shell its own PathProvider may be a better solution. ==========
michaelpg@chromium.org changed reviewers: + mkwst@chromium.org
Mike, does this look OK to you? Besides making developer's (read: my) lives easier, could this have unwanted effects I'm not seeing?
michaelpg@chromium.org changed reviewers: + peter@chromium.org
Peter, would you mind taking a look?
lgtm https://codereview.chromium.org/2344073003/diff/40001/content/shell/browser/s... File content/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/2344073003/diff/40001/content/shell/browser/s... content/shell/browser/shell_browser_context.cc:79: // We need to have an absolute path. nit: might be good to document that the PathService normally takes care of this, and features therefore might assume this to be the case.
Thanks! https://codereview.chromium.org/2344073003/diff/40001/content/shell/browser/s... File content/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/2344073003/diff/40001/content/shell/browser/s... content/shell/browser/shell_browser_context.cc:79: // We need to have an absolute path. On 2016/09/29 16:22:53, Peter Beverloo wrote: > nit: might be good to document that the PathService normally takes care of this, > and features therefore might assume this to be the case. Done.
michaelpg@chromium.org changed reviewers: - mkwst@chromium.org
The CQ bit was checked by michaelpg@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from peter@chromium.org Link to the patchset: https://codereview.chromium.org/2344073003/#ps80001 (title: "rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== content_shell/app_shell: validate --data-path and fall back to default directory The --data-path switch, if passed, specifies what directory to use as the browsing context's data directory. This CL checks that the directory actually exists/can be created, and converts relative paths to absolute. Note: This code is executed twice in content_shell (for normal and OTR contexts); in the long run, giving the shell its own PathProvider may be a better solution. ========== to ========== content_shell/app_shell: validate --data-path and fall back to default directory The --data-path switch, if passed, specifies what directory to use as the browsing context's data directory. This CL checks that the directory actually exists/can be created, and converts relative paths to absolute. Note: This code is executed twice in content_shell (for normal and OTR contexts); in the long run, giving the shell its own PathProvider may be a better solution. ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== content_shell/app_shell: validate --data-path and fall back to default directory The --data-path switch, if passed, specifies what directory to use as the browsing context's data directory. This CL checks that the directory actually exists/can be created, and converts relative paths to absolute. Note: This code is executed twice in content_shell (for normal and OTR contexts); in the long run, giving the shell its own PathProvider may be a better solution. ========== to ========== content_shell/app_shell: validate --data-path and fall back to default directory The --data-path switch, if passed, specifies what directory to use as the browsing context's data directory. This CL checks that the directory actually exists/can be created, and converts relative paths to absolute. Note: This code is executed twice in content_shell (for normal and OTR contexts); in the long run, giving the shell its own PathProvider may be a better solution. Committed: https://crrev.com/49a54b594e0c9f6d3ea60d1f21e90507c21423e2 Cr-Commit-Position: refs/heads/master@{#422670} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/49a54b594e0c9f6d3ea60d1f21e90507c21423e2 Cr-Commit-Position: refs/heads/master@{#422670} |