summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_job_manager.h
diff options
context:
space:
mode:
authorgspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-05 19:41:04 +0000
committergspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-05 19:41:04 +0000
commit4c219e27ca13c606e8c0ce7bd574a8976d524877 (patch)
tree1a75a72d73d68a91088262095519ca866f5e1ba7 /net/url_request/url_request_job_manager.h
parentb6a468984baba97e4e89218e45f3b16252dc1195 (diff)
downloadchromium_src-4c219e27ca13c606e8c0ce7bd574a8976d524877.zip
chromium_src-4c219e27ca13c606e8c0ce7bd574a8976d524877.tar.gz
chromium_src-4c219e27ca13c606e8c0ce7bd574a8976d524877.tar.bz2
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. Review URL: http://codereview.chromium.org/10068021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135553 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_job_manager.h')
-rw-r--r--net/url_request/url_request_job_manager.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/url_request/url_request_job_manager.h b/net/url_request/url_request_job_manager.h
index 469cc66..ce70272 100644
--- a/net/url_request/url_request_job_manager.h
+++ b/net/url_request/url_request_job_manager.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -65,9 +65,6 @@ class URLRequestJobManager {
void RegisterRequestInterceptor(URLRequest::Interceptor* interceptor);
void UnregisterRequestInterceptor(URLRequest::Interceptor* interceptor);
- void set_enable_file_access(bool enable) { enable_file_access_ = enable; }
- bool enable_file_access() const { return enable_file_access_; }
-
private:
typedef std::map<std::string, URLRequest::ProtocolFactory*> FactoryMap;
typedef std::vector<URLRequest::Interceptor*> InterceptorList;
@@ -90,7 +87,7 @@ class URLRequestJobManager {
#else
// The previous version of this check used GetCurrentThread on Windows to
// get thread handles to compare. Unfortunately, GetCurrentThread returns
- // a constant psuedo-handle (0xFFFFFFFE), and therefore IsAllowedThread
+ // a constant pseudo-handle (0xFFFFFFFE), and therefore IsAllowedThread
// always returned true. The above code that's turned off is the correct
// code, but causes the tree to turn red because some caller isn't
// respecting our thread requirements. We're turning off the check for now;
@@ -108,7 +105,6 @@ class URLRequestJobManager {
mutable base::Lock lock_;
FactoryMap factories_;
InterceptorList interceptors_;
- bool enable_file_access_;
DISALLOW_COPY_AND_ASSIGN(URLRequestJobManager);
};