From 4c219e27ca13c606e8c0ce7bd574a8976d524877 Mon Sep 17 00:00:00 2001 From: "gspencer@chromium.org" Date: Sat, 5 May 2012 19:41:04 +0000 Subject: 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 --- net/url_request/url_request_job_manager.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'net/url_request/url_request_job_manager.h') 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 FactoryMap; typedef std::vector 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); }; -- cgit v1.1