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

Unified Diff: net/url_request/url_request_context.h

Issue 83433008: Cleanup: Remove legacy accessors from URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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_context.h
diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h
index 2c8a3b850f9600cac7ee55d19716677f13aac15b..5bb5b514a04ea5c660119c7f317dcde8d0982883 100644
--- a/net/url_request/url_request_context.h
+++ b/net/url_request/url_request_context.h
@@ -167,17 +167,6 @@ class NET_EXPORT URLRequestContext
cert_transparency_verifier_ = verifier;
}
- // ---------------------------------------------------------------------------
- // Legacy accessors that delegate to http_user_agent_settings_.
- // TODO(pauljensen): Remove after all clients are updated to directly access
- // http_user_agent_settings_.
- // Gets the value of 'Accept-Language' header field.
- std::string GetAcceptLanguage() const;
- // Gets the UA string to use for the given URL. Pass an invalid URL (such as
- // GURL()) to get the default UA string.
- std::string GetUserAgent(const GURL& url) const;
- // ---------------------------------------------------------------------------
-
const URLRequestJobFactory* job_factory() const { return job_factory_; }
void set_job_factory(const URLRequestJobFactory* job_factory) {
job_factory_ = job_factory;

Powered by Google App Engine
This is Rietveld 408576698