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

Unified Diff: android_webview/browser/net/aw_url_request_context_getter.cc

Issue 191093002: Simplify the user agent code some more since after r255534 it's not affected by the site's URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: patchset 15 which works Created 6 years, 9 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
« no previous file with comments | « no previous file | android_webview/common/aw_content_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/net/aw_url_request_context_getter.cc
===================================================================
--- android_webview/browser/net/aw_url_request_context_getter.cc (revision 255867)
+++ android_webview/browser/net/aw_url_request_context_getter.cc (working copy)
@@ -11,6 +11,7 @@
#include "android_webview/browser/net/aw_network_delegate.h"
#include "android_webview/browser/net/aw_url_request_job_factory.h"
#include "android_webview/browser/net/init_native_callback.h"
+#include "android_webview/common/aw_content_client.h"
#include "android_webview/common/aw_switches.h"
#include "base/command_line.h"
#include "base/strings/string_number_conversions.h"
@@ -177,7 +178,7 @@
DCHECK(!url_request_context_);
net::URLRequestContextBuilder builder;
- builder.set_user_agent(content::GetUserAgent(GURL()));
+ builder.set_user_agent(GetUserAgent());
builder.set_network_delegate(new AwNetworkDelegate());
#if !defined(DISABLE_FTP_SUPPORT)
builder.set_ftp_enabled(false); // Android WebView does not support ftp yet.
« no previous file with comments | « no previous file | android_webview/common/aw_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698