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

Issue 2657903005: Factor out core logic from OnCanAccessFile() and add tests for it (Closed)

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

Description

Factor out core logic from OnCanAccessFile() and add tests for it OnCanAccessFile() had platform-specific logic to decide which paths are allowed to access via file: schema, that had not tests. This patch factors out the logic and adds tests for it. Before adding more code to the logic, I wanted added tests for it. BUG=677933 TEST=the new tests pass Review-Url: https://codereview.chromium.org/2657903005 Cr-Commit-Position: refs/heads/master@{#446617} Committed: https://chromium.googlesource.com/chromium/src/+/7c5360584c37d4d21a46f1c410e1d0d036494bf8

Patch Set 1 #

Patch Set 2 : // static #

Patch Set 3 : android build #

Total comments: 2

Patch Set 4 : just rebase #

Patch Set 5 : address comments #

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

Messages

Total messages: 19 (14 generated)
satorux1
3 years, 11 months ago (2017-01-26 04:30:05 UTC) #5
eroman
LGTM, thanks for the tests! https://codereview.chromium.org/2657903005/diff/40001/chrome/browser/net/chrome_network_delegate_unittest.cc File chrome/browser/net/chrome_network_delegate_unittest.cc (right): https://codereview.chromium.org/2657903005/diff/40001/chrome/browser/net/chrome_network_delegate_unittest.cc#newcode545 chrome/browser/net/chrome_network_delegate_unittest.cc:545: return; Is this return ...
3 years, 11 months ago (2017-01-27 01:21:49 UTC) #12
satorux1
https://codereview.chromium.org/2657903005/diff/40001/chrome/browser/net/chrome_network_delegate_unittest.cc File chrome/browser/net/chrome_network_delegate_unittest.cc (right): https://codereview.chromium.org/2657903005/diff/40001/chrome/browser/net/chrome_network_delegate_unittest.cc#newcode545 chrome/browser/net/chrome_network_delegate_unittest.cc:545: return; good point. removed!
3 years, 11 months ago (2017-01-27 06:23:35 UTC) #13
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/2657903005/80001
3 years, 11 months ago (2017-01-27 06:25:27 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-27 07:25:22 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/7c5360584c37d4d21a46f1c410e1...

Powered by Google App Engine
This is Rietveld 408576698