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

Unified Diff: net/url_request/url_request_job_manager.h

Issue 10068021: Fix file access on Chrome for ChromeOS on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed clang problem Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: 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 469cc66022b44a6792d2d6532f07db179c7cb688..a308afc9b5a54d400e8caeb4b5d19a8f71f74b79 100644
--- a/net/url_request/url_request_job_manager.h
+++ b/net/url_request/url_request_job_manager.h
@@ -65,8 +65,8 @@ 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_; }
+ void set_file_access_allowed(bool allow) { file_access_allowed_ = allow; }
+ bool file_access_allowed() const { return file_access_allowed_; }
private:
typedef std::map<std::string, URLRequest::ProtocolFactory*> FactoryMap;
@@ -90,7 +90,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 +108,7 @@ class URLRequestJobManager {
mutable base::Lock lock_;
FactoryMap factories_;
InterceptorList interceptors_;
- bool enable_file_access_;
+ bool file_access_allowed_;
DISALLOW_COPY_AND_ASSIGN(URLRequestJobManager);
};

Powered by Google App Engine
This is Rietveld 408576698