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

Unified Diff: ios/chrome/browser/ios_chrome_io_thread.mm

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: Eugene's comments 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
Index: ios/chrome/browser/ios_chrome_io_thread.mm
diff --git a/ios/chrome/browser/ios_chrome_io_thread.mm b/ios/chrome/browser/ios_chrome_io_thread.mm
index 4a768dcaf86cb01be7bc76bc5a4fc0e444ae66be..d58b5594929662f99121446a3f2b34ca9c142cd8 100644
--- a/ios/chrome/browser/ios_chrome_io_thread.mm
+++ b/ios/chrome/browser/ios_chrome_io_thread.mm
@@ -388,7 +388,8 @@ void OnNetworkChanged(
globals_->system_cookie_store->SetChannelIDServiceID(
globals_->system_channel_id_service->GetUniqueID());
globals_->http_user_agent_settings.reset(new net::StaticHttpUserAgentSettings(
- std::string(), web::GetWebClient()->GetUserAgent(false)));
+ std::string(),
+ web::GetWebClient()->GetUserAgent(web::UserAgentType::MOBILE)));
if (command_line.HasSwitch(switches::kIOSTestingFixedHttpPort)) {
params_.testing_fixed_http_port =
GetSwitchValueAsInt(command_line, switches::kIOSTestingFixedHttpPort);

Powered by Google App Engine
This is Rietveld 408576698