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

Issue 10068021: Fix file access on Chrome for ChromeOS on Linux (Closed)

Created:
8 years, 8 months ago by Greg Spencer (Chromium)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Fix file access on Chrome for ChromeOS on Linux so that we can open files in the user's Downloads directory. Shouldn't affect actual ChromeOS or other platforms. BUG=chromium-os:29447 TEST=Ran on Linux, opened files from Downloads folder. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135553

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixing layer violation #

Patch Set 3 : Fixed clang problem #

Total comments: 17

Patch Set 4 : Review changes #

Patch Set 5 : Review changes #

Patch Set 6 : Review changes #

Total comments: 2

Patch Set 7 : Review changes #

Patch Set 8 : Upload after sync #

Total comments: 2

Patch Set 9 : changed some names #

Patch Set 10 : Fix net unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -165 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/net/chrome_network_delegate.h View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 5 6 7 8 4 chunks +66 lines, -13 lines 0 comments Download
M content/shell/shell_network_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -6 lines 0 comments Download
M content/shell/shell_network_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -6 lines 0 comments Download
M net/base/network_delegate.h View 1 2 3 4 5 6 7 8 3 chunks +21 lines, -11 lines 0 comments Download
M net/base/network_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -11 lines 0 comments Download
M net/proxy/network_delegate_error_observer_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -7 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 11 chunks +90 lines, -20 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -12 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -5 lines 0 comments Download
M net/url_request/url_request_file_job.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M net/url_request/url_request_file_job.cc View 1 2 3 4 5 6 4 chunks +15 lines, -34 lines 0 comments Download
M net/url_request/url_request_job_manager.h View 1 2 3 4 3 chunks +1 line, -5 lines 0 comments Download
M net/url_request/url_request_job_manager.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -5 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -5 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -8 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Greg Spencer (Chromium)
8 years, 8 months ago (2012-04-12 18:49:21 UTC) #1
Greg Spencer (Chromium)
willchan, I need an OWNERS review here too.
8 years, 8 months ago (2012-04-12 18:51:57 UTC) #2
zel
http://codereview.chromium.org/10068021/diff/1/net/url_request/url_request_file_job.cc File net/url_request/url_request_file_job.cc (right): http://codereview.chromium.org/10068021/diff/1/net/url_request/url_request_file_job.cc#newcode141 net/url_request/url_request_file_job.cc:141: // If we're running Chrome for ChromeOS on Linux, ...
8 years, 8 months ago (2012-04-12 20:19:40 UTC) #3
Greg Spencer (Chromium)
http://codereview.chromium.org/10068021/diff/1/net/url_request/url_request_file_job.cc File net/url_request/url_request_file_job.cc (right): http://codereview.chromium.org/10068021/diff/1/net/url_request/url_request_file_job.cc#newcode141 net/url_request/url_request_file_job.cc:141: // If we're running Chrome for ChromeOS on Linux, ...
8 years, 8 months ago (2012-04-12 20:26:58 UTC) #4
willchan no longer on Chromium
I'm going to be OOO until Monday. Redirecting to eroman. But I'm annoyed by the ...
8 years, 8 months ago (2012-04-12 23:44:59 UTC) #5
eroman
LGTM
8 years, 8 months ago (2012-04-13 00:25:23 UTC) #6
Greg Spencer (Chromium)
On 2012/04/12 23:44:59, willchan wrote: > Ugh, I don't know why this whitelist was allowed ...
8 years, 8 months ago (2012-04-13 19:17:09 UTC) #7
Greg Spencer (Chromium)
Zel, is this OK to go ahead with?
8 years, 8 months ago (2012-04-14 00:45:30 UTC) #8
zel
no pressure form my side on this one, if you want to refactor it properly ...
8 years, 8 months ago (2012-04-14 00:52:33 UTC) #9
willchan no longer on Chromium
My minor preference is to fix this (it looks easy with NetworkDelegate). But you already ...
8 years, 8 months ago (2012-04-14 16:21:23 UTC) #10
Greg Spencer (Chromium)
On 2012/04/14 16:21:23, willchan wrote: > My minor preference is to fix this (it looks ...
8 years, 8 months ago (2012-04-18 22:35:08 UTC) #11
achuithb
Sorry about the layering mess. This was my starter bug at Google. http://codereview.chromium.org/10068021/diff/12005/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc ...
8 years, 8 months ago (2012-04-19 20:05:56 UTC) #12
Greg Spencer (Chromium)
http://codereview.chromium.org/10068021/diff/12005/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): http://codereview.chromium.org/10068021/diff/12005/chrome/browser/net/chrome_network_delegate.cc#newcode7 chrome/browser/net/chrome_network_delegate.cc:7: #include "base/chromeos/chromeos_version.h" On 2012/04/19 20:05:56, achuith.bhandarkar wrote: > Shouldn't ...
8 years, 8 months ago (2012-04-19 20:51:17 UTC) #13
willchan no longer on Chromium
You rule for fixing it the right way! http://codereview.chromium.org/10068021/diff/12005/chrome/browser/net/chrome_network_delegate.h File chrome/browser/net/chrome_network_delegate.h (right): http://codereview.chromium.org/10068021/diff/12005/chrome/browser/net/chrome_network_delegate.h#newcode85 chrome/browser/net/chrome_network_delegate.h:85: virtual ...
8 years, 8 months ago (2012-04-19 21:12:24 UTC) #14
Greg Spencer (Chromium)
http://codereview.chromium.org/10068021/diff/12005/chrome/browser/net/chrome_network_delegate.h File chrome/browser/net/chrome_network_delegate.h (right): http://codereview.chromium.org/10068021/diff/12005/chrome/browser/net/chrome_network_delegate.h#newcode85 chrome/browser/net/chrome_network_delegate.h:85: virtual bool CanAccessFile(const net::URLRequest* request, On 2012/04/19 21:12:24, willchan ...
8 years, 8 months ago (2012-04-20 00:05:53 UTC) #15
willchan no longer on Chromium
http://codereview.chromium.org/10068021/diff/12005/net/url_request/url_request.cc File net/url_request/url_request.cc (right): http://codereview.chromium.org/10068021/diff/12005/net/url_request/url_request.cc#newcode345 net/url_request/url_request.cc:345: if (URLRequestJobManager::GetInstance()->file_access_allowed()) On 2012/04/20 00:05:54, Greg Spencer (Chromium) wrote: ...
8 years, 8 months ago (2012-04-20 00:14:03 UTC) #16
Greg Spencer (Chromium)
http://codereview.chromium.org/10068021/diff/12005/net/url_request/url_request.cc File net/url_request/url_request.cc (right): http://codereview.chromium.org/10068021/diff/12005/net/url_request/url_request.cc#newcode345 net/url_request/url_request.cc:345: if (URLRequestJobManager::GetInstance()->file_access_allowed()) On 2012/04/20 00:14:03, willchan wrote: > Can ...
8 years, 8 months ago (2012-04-20 19:21:28 UTC) #17
Greg Spencer (Chromium)
Friendly ping...
8 years, 7 months ago (2012-05-02 02:52:23 UTC) #18
willchan no longer on Chromium
lgtm
8 years, 7 months ago (2012-05-02 05:23:56 UTC) #19
willchan no longer on Chromium
On 2012/05/02 05:23:56, willchan wrote: > lgtm Sorry for the delay, feel free to ping ...
8 years, 7 months ago (2012-05-02 05:24:27 UTC) #20
achuithb
lgtm
8 years, 7 months ago (2012-05-02 07:20:57 UTC) #21
Greg Spencer (Chromium)
On 2012/05/02 05:24:27, willchan wrote: > On 2012/05/02 05:23:56, willchan wrote: > > lgtm > ...
8 years, 7 months ago (2012-05-02 17:11:58 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gspencer@chromium.org/10068021/54002
8 years, 7 months ago (2012-05-02 20:25:41 UTC) #23
commit-bot: I haz the power
Presubmit check for 10068021-54002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-02 20:26:08 UTC) #24
Greg Spencer (Chromium)
Darin, I need an OWNERS review for the following files: content/shell/shell_network_delegate.cc content/shell/shell_network_delegate.h webkit/tools/test_shell/simple_resource_loader_bridge.cc Basically, the ...
8 years, 7 months ago (2012-05-02 20:46:52 UTC) #25
Greg Spencer (Chromium)
Since these are such rote changes, I'm going to TBR the last OWNERs review. Let ...
8 years, 7 months ago (2012-05-03 17:35:15 UTC) #26
darin (slow to review)
LGTM for webkit/ changes, and it's always OK to TBR such trivial changes. But, I ...
8 years, 7 months ago (2012-05-04 06:49:31 UTC) #27
Greg Spencer (Chromium)
http://codereview.chromium.org/10068021/diff/54002/net/base/network_delegate.h File net/base/network_delegate.h (right): http://codereview.chromium.org/10068021/diff/54002/net/base/network_delegate.h#newcode188 net/base/network_delegate.h:188: virtual bool CanGetCookiesInternal(const URLRequest& request, On 2012/05/04 06:49:31, darin ...
8 years, 7 months ago (2012-05-05 02:46:19 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gspencer@chromium.org/10068021/65002
8 years, 7 months ago (2012-05-05 02:47:10 UTC) #29
commit-bot: I haz the power
Try job failure for 10068021-65002 (retry) on android for steps "Compile, build". It's a second ...
8 years, 7 months ago (2012-05-05 03:03:26 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gspencer@chromium.org/10068021/74002
8 years, 7 months ago (2012-05-05 16:40:15 UTC) #31
commit-bot: I haz the power
8 years, 7 months ago (2012-05-05 19:41:10 UTC) #32
Change committed as 135553

Powered by Google App Engine
This is Rietveld 408576698