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

Issue 2926543002: chromeos: Replace "/tmp" with a call to PathService::Get() (Closed)

Created:
3 years, 6 months ago by satorux1
Modified:
3 years, 6 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Replace "/tmp" with a call to PathService::Get() This is in preparation for adding a browser test that is to ensure access control for file:scheme is working. In the browser test, I plan to use PathService::Get(DIR_TEMP) to store a symbolic link in a location that's accessible via file: scheme. Confirmed that PathService::Get(DIR_TEMP) returns /tmp in production so this patch does not change the production behavior. Along the way, simplify the code a bit by introducing a vector. TEST=file:///tmp is still accessible on a Chromebook BUG=677933 Review-Url: https://codereview.chromium.org/2926543002 Cr-Commit-Position: refs/heads/master@{#477885} Committed: https://chromium.googlesource.com/chromium/src/+/ca8b564942b90a8ce527933dca71645880e214ab

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -17 lines) Patch
M chrome/browser/net/chrome_network_delegate.cc View 1 3 chunks +16 lines, -15 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (16 generated)
satorux1
PTAL https://codereview.chromium.org/2926543002/diff/1/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/2926543002/diff/1/chrome/browser/net/chrome_network_delegate.cc#newcode484 chrome/browser/net/chrome_network_delegate.cc:484: "/home/chronos/user/Downloads", tried to replace this with DIR_DEFAULT_DOWNLOADS or ...
3 years, 6 months ago (2017-06-06 08:19:05 UTC) #4
mmenke
LGTM https://codereview.chromium.org/2926543002/diff/1/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/2926543002/diff/1/chrome/browser/net/chrome_network_delegate.cc#newcode521 chrome/browser/net/chrome_network_delegate.cc:521: for (size_t i = 0; i < arraysize(kLocalAccessWhiteList); ...
3 years, 6 months ago (2017-06-06 15:49:08 UTC) #7
satorux1
https://codereview.chromium.org/2926543002/diff/1/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/2926543002/diff/1/chrome/browser/net/chrome_network_delegate.cc#newcode521 chrome/browser/net/chrome_network_delegate.cc:521: for (size_t i = 0; i < arraysize(kLocalAccessWhiteList); ++i) ...
3 years, 6 months ago (2017-06-08 02:13:44 UTC) #10
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/2926543002/40001
3 years, 6 months ago (2017-06-08 04:22:09 UTC) #18
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 04:26:49 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/ca8b564942b90a8ce527933dca71...

Powered by Google App Engine
This is Rietveld 408576698