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

Issue 2344073003: content_shell/app_shell: validate --data-path and fall back to default directory (Closed)

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.

Description

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}

Patch Set 1 #

Patch Set 2 : check for directory #

Patch Set 3 : logging #

Total comments: 2

Patch Set 4 : comment #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M content/shell/browser/shell_browser_context.cc View 1 2 3 1 chunk +13 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
michaelpg
Mike, does this look OK to you? Besides making developer's (read: my) lives easier, could ...
4 years, 3 months ago (2016-09-16 22:02:56 UTC) #8
michaelpg
Peter, would you mind taking a look?
4 years, 2 months ago (2016-09-29 01:33:08 UTC) #10
Peter Beverloo
lgtm https://codereview.chromium.org/2344073003/diff/40001/content/shell/browser/shell_browser_context.cc File content/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/2344073003/diff/40001/content/shell/browser/shell_browser_context.cc#newcode79 content/shell/browser/shell_browser_context.cc:79: // We need to have an absolute path. ...
4 years, 2 months ago (2016-09-29 16:22:53 UTC) #11
michaelpg
Thanks! https://codereview.chromium.org/2344073003/diff/40001/content/shell/browser/shell_browser_context.cc File content/shell/browser/shell_browser_context.cc (right): https://codereview.chromium.org/2344073003/diff/40001/content/shell/browser/shell_browser_context.cc#newcode79 content/shell/browser/shell_browser_context.cc:79: // We need to have an absolute path. ...
4 years, 2 months ago (2016-09-30 03:38:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2344073003/80001
4 years, 2 months ago (2016-10-04 00:58:27 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-04 02:07:46 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 02:11:49 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/49a54b594e0c9f6d3ea60d1f21e90507c21423e2
Cr-Commit-Position: refs/heads/master@{#422670}

Powered by Google App Engine
This is Rietveld 408576698