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

Unified Diff: net/url_request/url_request.cc

Issue 10068021: Fix file access on Chrome for ChromeOS on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review changes 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.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 8597917f0cbf49c84b3bdae3a7bebacbc264f1e0..61934682c33b98b9fe55cd29800ed4a1e1827534 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -336,16 +336,6 @@ bool URLRequest::IsHandledURL(const GURL& url) {
return IsHandledProtocol(url.scheme());
}
-// static
-void URLRequest::AllowFileAccess() {
- URLRequestJobManager::GetInstance()->set_enable_file_access(true);
-}
-
-// static
-bool URLRequest::IsFileAccessAllowed() {
- return URLRequestJobManager::GetInstance()->enable_file_access();
-}
-
void URLRequest::set_first_party_for_cookies(
const GURL& first_party_for_cookies) {
first_party_for_cookies_ = first_party_for_cookies;
@@ -828,7 +818,7 @@ void URLRequest::NotifySSLCertificateError(const SSLInfo& ssl_info,
bool URLRequest::CanGetCookies(const CookieList& cookie_list) const {
DCHECK(!(load_flags_ & LOAD_DO_NOT_SEND_COOKIES));
if (context_ && context_->network_delegate()) {
- return context_->network_delegate()->NotifyReadingCookies(this,
+ return context_->network_delegate()->NotifyReadingCookies(*this,
cookie_list);
}
return false;
@@ -838,7 +828,7 @@ bool URLRequest::CanSetCookie(const std::string& cookie_line,
CookieOptions* options) const {
DCHECK(!(load_flags_ & LOAD_DO_NOT_SAVE_COOKIES));
if (context_ && context_->network_delegate()) {
- return context_->network_delegate()->NotifySettingCookie(this,
+ return context_->network_delegate()->NotifySettingCookie(*this,
cookie_line,
options);
}

Powered by Google App Engine
This is Rietveld 408576698