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

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

Issue 192283002: Revert 255858 "Simplify the user agent code some more since afte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | trunk/src/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: trunk/src/android_webview/browser/net/aw_url_request_context_getter.cc
===================================================================
--- trunk/src/android_webview/browser/net/aw_url_request_context_getter.cc (revision 255866)
+++ trunk/src/android_webview/browser/net/aw_url_request_context_getter.cc (working copy)
@@ -11,7 +11,6 @@
#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"
@@ -178,7 +177,7 @@
DCHECK(!url_request_context_);
net::URLRequestContextBuilder builder;
- builder.set_user_agent(GetUserAgent());
+ builder.set_user_agent(content::GetUserAgent(GURL()));
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 | trunk/src/android_webview/common/aw_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698