Index: chrome/service/net/service_url_request_context.cc |
diff --git a/chrome/service/net/service_url_request_context.cc b/chrome/service/net/service_url_request_context.cc |
index ce32f67f644b7ed259fa1568b6b3b86abee9ec71..59cea2bae91480af1fd7de51b500530570b7eac9 100644 |
--- a/chrome/service/net/service_url_request_context.cc |
+++ b/chrome/service/net/service_url_request_context.cc |
@@ -139,6 +139,14 @@ ServiceURLRequestContext::ServiceURLRequestContext( |
accept_charset_ = "iso-8859-1,*,utf-8"; |
} |
+const std::string& ServiceURLRequestContext::GetUserAgent( |
+ const GURL& url) const { |
+ // If the user agent is set explicitly return that, otherwise call the |
+ // base class method to return default value. |
+ return user_agent_.empty() ? |
+ URLRequestContext::GetUserAgent(url) : user_agent_; |
+} |
+ |
ServiceURLRequestContext::~ServiceURLRequestContext() { |
delete ftp_transaction_factory_; |
delete http_transaction_factory_; |