diff options
author | pauljensen@chromium.org <pauljensen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-23 19:59:54 +0000 |
---|---|---|
committer | pauljensen@chromium.org <pauljensen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-23 19:59:54 +0000 |
commit | a7799617d37530bc94e689c10798677c3cbad5c2 (patch) | |
tree | 1a3b3d4e5607b3fb68d0661334cf2a796a3e1c40 /net | |
parent | a9f94f399a5925ef801b2856bd4ad79f2d823e77 (diff) | |
download | chromium_src-a7799617d37530bc94e689c10798677c3cbad5c2.zip chromium_src-a7799617d37530bc94e689c10798677c3cbad5c2.tar.gz chromium_src-a7799617d37530bc94e689c10798677c3cbad5c2.tar.bz2 |
Non-functional change to simply have Downloads query Prefs for the charset when we need it rather than have ChromeURLRequestContext track it on the network thread and pass it through three different classes.
BUG=146596
Review URL: https://chromiumcodereview.appspot.com/11092088
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163652 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/url_request/url_request_context.cc | 1 | ||||
-rw-r--r-- | net/url_request/url_request_context.h | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/net/url_request/url_request_context.cc b/net/url_request/url_request_context.cc index b9ee75f..42a5789 100644 --- a/net/url_request/url_request_context.cc +++ b/net/url_request/url_request_context.cc @@ -58,7 +58,6 @@ void URLRequestContext::CopyFrom(const URLRequestContext* other) { // FTPAuthCache is unique per context. set_accept_language(other->accept_language_); set_accept_charset(other->accept_charset_); - set_referrer_charset(other->referrer_charset_); set_http_transaction_factory(other->http_transaction_factory_); set_ftp_transaction_factory(other->ftp_transaction_factory_); set_job_factory(other->job_factory_); diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h index cea9de5..fb6af73 100644 --- a/net/url_request/url_request_context.h +++ b/net/url_request/url_request_context.h @@ -189,13 +189,6 @@ class NET_EXPORT URLRequestContext // method to provide a UA string. virtual const std::string& GetUserAgent(const GURL& url) const; - // In general, referrer_charset is not known when URLRequestContext is - // constructed. So, we need a setter. - const std::string& referrer_charset() const { return referrer_charset_; } - void set_referrer_charset(const std::string& charset) { - referrer_charset_ = charset; - } - const URLRequestJobFactory* job_factory() const { return job_factory_; } void set_job_factory(const URLRequestJobFactory* job_factory) { job_factory_ = job_factory; @@ -245,7 +238,6 @@ class NET_EXPORT URLRequestContext // The charset of the referrer where this request comes from. It's not // used in communication with a server but is used to construct a suggested // filename for file download. - std::string referrer_charset_; HttpTransactionFactory* http_transaction_factory_; FtpTransactionFactory* ftp_transaction_factory_; const URLRequestJobFactory* job_factory_; |