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

Issue 2913733002: Add a browser test for access control for file: scheme (Closed)

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

Description

Add a browser test for access control for file: scheme Access to files via file: scheme is controled in ChromeNetworkDelegate::OnCanAccessFile(). The browser test is to ensure that this function is actually used to control the access. BUG=677933 TEST=the test passes on bots NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2913733002 Cr-Commit-Position: refs/heads/master@{#477915} Committed: https://chromium.googlesource.com/chromium/src/+/d18e61ab5e01b85ff9160c4ab143cba6cd64d7be

Patch Set 1 #

Patch Set 2 : Rework the patch per feedback #

Total comments: 22

Patch Set 3 : just rebase #

Patch Set 4 : Address comments #

Total comments: 6

Patch Set 5 : Address comments #

Patch Set 6 : just rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -12 lines) Patch
M chrome/browser/net/chrome_network_delegate.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 5 3 chunks +8 lines, -5 lines 0 comments Download
A chrome/browser/net/chrome_network_delegate_browsertest.cc View 1 2 3 1 chunk +84 lines, -0 lines 0 comments Download
M chrome/browser/net/errorpage_browsertest.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/in_process_browser_test.cc View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M content/public/test/test_navigation_observer.h View 1 2 3 4 chunks +10 lines, -2 lines 0 comments Download
M content/public/test/test_navigation_observer.cc View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 45 (26 generated)
satorux1
PTAL NOPRESUBMIT=true can be removed if https://codereview.chromium.org/2911153002/ lands before this patch. :)
3 years, 6 months ago (2017-05-30 06:43:02 UTC) #4
mmenke
On 2017/05/30 06:43:02, satorux1 wrote: > PTAL > > NOPRESUBMIT=true can be removed if https://codereview.chromium.org/2911153002/ ...
3 years, 6 months ago (2017-05-30 20:10:18 UTC) #7
mmenke
On 2017/05/30 20:10:18, mmenke wrote: > On 2017/05/30 06:43:02, satorux1 wrote: > > PTAL > ...
3 years, 6 months ago (2017-05-30 20:11:32 UTC) #8
satorux1
> > I'm not sure about this approach - seems like depending on a command ...
3 years, 6 months ago (2017-05-31 00:32:33 UTC) #9
mmenke
On 2017/05/31 00:32:33, satorux1 wrote: > > > I'm not sure about this approach - ...
3 years, 6 months ago (2017-05-31 15:47:06 UTC) #10
satorux1
> > I think my patch is valuable to some extent since it can ensure ...
3 years, 6 months ago (2017-05-31 22:03:19 UTC) #11
mmenke
On 2017/05/31 22:03:19, satorux1 wrote: > > > I think my patch is valuable to ...
3 years, 6 months ago (2017-06-02 19:35:27 UTC) #12
satorux1
> Sorry for the delay - took yesterday off, and been a bit low on ...
3 years, 6 months ago (2017-06-05 07:05:37 UTC) #15
mmenke
Looks really good, mostly just nits, though two more significant suggestions (Those are why I'm ...
3 years, 6 months ago (2017-06-05 18:31:34 UTC) #21
satorux1
PTAL https://codereview.chromium.org/2913733002/diff/40001/chrome/browser/net/chrome_network_delegate_browsertest.cc File chrome/browser/net/chrome_network_delegate_browsertest.cc (right): https://codereview.chromium.org/2913733002/diff/40001/chrome/browser/net/chrome_network_delegate_browsertest.cc#newcode1 chrome/browser/net/chrome_network_delegate_browsertest.cc:1: // Copyright (c) 2017 The Chromium Authors. All ...
3 years, 6 months ago (2017-06-06 08:52:37 UTC) #22
mmenke
Looks great! LGTM! I'll add owners for the test/ files, try and save you a ...
3 years, 6 months ago (2017-06-06 15:17:07 UTC) #27
mmenke
[+sky]: Please review chrome/test/base/in_process_browser_test.cc and content/public/test/ changes.
3 years, 6 months ago (2017-06-06 15:20:11 UTC) #29
sky
https://codereview.chromium.org/2913733002/diff/80001/chrome/test/base/in_process_browser_test.cc File chrome/test/base/in_process_browser_test.cc (right): https://codereview.chromium.org/2913733002/diff/80001/chrome/test/base/in_process_browser_test.cc#newcode259 chrome/test/base/in_process_browser_test.cc:259: // browser_tests and interactive_ui_tests rely on the ability to ...
3 years, 6 months ago (2017-06-06 17:18:26 UTC) #30
mmenke1
https://codereview.chromium.org/2913733002/diff/80001/chrome/test/base/in_process_browser_test.cc File chrome/test/base/in_process_browser_test.cc (right): https://codereview.chromium.org/2913733002/diff/80001/chrome/test/base/in_process_browser_test.cc#newcode259 chrome/test/base/in_process_browser_test.cc:259: // browser_tests and interactive_ui_tests rely on the ability to ...
3 years, 6 months ago (2017-06-06 17:23:41 UTC) #32
sky
https://codereview.chromium.org/2913733002/diff/80001/chrome/test/base/in_process_browser_test.cc File chrome/test/base/in_process_browser_test.cc (right): https://codereview.chromium.org/2913733002/diff/80001/chrome/test/base/in_process_browser_test.cc#newcode259 chrome/test/base/in_process_browser_test.cc:259: // browser_tests and interactive_ui_tests rely on the ability to ...
3 years, 6 months ago (2017-06-06 20:45:36 UTC) #33
satorux1
https://codereview.chromium.org/2913733002/diff/80001/chrome/test/base/in_process_browser_test.cc File chrome/test/base/in_process_browser_test.cc (right): https://codereview.chromium.org/2913733002/diff/80001/chrome/test/base/in_process_browser_test.cc#newcode259 chrome/test/base/in_process_browser_test.cc:259: // browser_tests and interactive_ui_tests rely on the ability to ...
3 years, 6 months ago (2017-06-07 08:00:38 UTC) #34
sky
LGTM
3 years, 6 months ago (2017-06-07 16:28:41 UTC) #39
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/2913733002/120001
3 years, 6 months ago (2017-06-08 04:57:27 UTC) #42
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 06:39:02 UTC) #45
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/d18e61ab5e01b85ff9160c4ab143...

Powered by Google App Engine
This is Rietveld 408576698