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

Unified Diff: webkit/tools/test_shell/test_shell_request_context.cc

Issue 19613: Merge 8764 - Add support for UA spoofing, and spoof Safari's UA string when l... (Closed) Base URL: svn://chrome-svn/chrome/branches/release_154.next/src/
Patch Set: Created 11 years, 11 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
Index: webkit/tools/test_shell/test_shell_request_context.cc
===================================================================
--- webkit/tools/test_shell/test_shell_request_context.cc (revision 8772)
+++ webkit/tools/test_shell/test_shell_request_context.cc (working copy)
@@ -22,8 +22,6 @@
net::HttpCache::Mode cache_mode) {
cookie_store_ = new net::CookieMonster();
- user_agent_ = webkit_glue::GetUserAgent();
-
// hard-code A-L and A-C for test shells
accept_language_ = "en-us,en";
accept_charset_ = "iso-8859-1,*,utf-8";
@@ -43,3 +41,7 @@
delete http_transaction_factory_;
}
+const std::string& TestShellRequestContext::GetUserAgent(
+ const GURL& url) const {
+ return webkit_glue::GetUserAgent(url);
+}
« chrome/browser/profile.cc ('K') | « webkit/tools/test_shell/test_shell_request_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698