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

Unified Diff: ios/web/shell/shell_url_request_context_getter.mm

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: rebase + compile fix Created 3 years, 10 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 | « ios/web/public/web_client.mm ('k') | ios/web/shell/shell_web_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/shell/shell_url_request_context_getter.mm
diff --git a/ios/web/shell/shell_url_request_context_getter.mm b/ios/web/shell/shell_url_request_context_getter.mm
index 4f5cc5411163f315b039537a3634029640afb7a5..18c66fecc19c233a1b524e2d1112ae632a5f5691 100644
--- a/ios/web/shell/shell_url_request_context_getter.mm
+++ b/ios/web/shell/shell_url_request_context_getter.mm
@@ -88,7 +88,8 @@
new net::CookieStoreIOSPersistent(persistent_store.get()));
storage_->set_cookie_store(std::move(cookie_store));
- std::string user_agent = web::GetWebClient()->GetUserAgent(false);
+ std::string user_agent =
+ web::GetWebClient()->GetUserAgent(web::UserAgentType::MOBILE);
storage_->set_http_user_agent_settings(
base::MakeUnique<net::StaticHttpUserAgentSettings>("en-us,en",
user_agent));
« no previous file with comments | « ios/web/public/web_client.mm ('k') | ios/web/shell/shell_web_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698