Index: ios/web/navigation/navigation_item_impl.mm |
diff --git a/ios/web/navigation/navigation_item_impl.mm b/ios/web/navigation/navigation_item_impl.mm |
index 31f357566080a0b3b5613312130691500edc34bc..e5f14e56d3412ba571db8b7a8c228418e7ad2aa6 100644 |
--- a/ios/web/navigation/navigation_item_impl.mm |
+++ b/ios/web/navigation/navigation_item_impl.mm |
@@ -40,7 +40,7 @@ static int GetUniqueIDInConstructor() { |
NavigationItemImpl::NavigationItemImpl() |
: unique_id_(GetUniqueIDInConstructor()), |
transition_type_(ui::PAGE_TRANSITION_LINK), |
- is_overriding_user_agent_(false), |
+ user_agent_type_(UserAgentType::MOBILE), |
is_created_from_push_state_(false), |
has_state_been_replaced_(false), |
is_created_from_hash_change_(false), |
@@ -64,7 +64,7 @@ static int GetUniqueIDInConstructor() { |
favicon_(item.favicon_), |
ssl_(item.ssl_), |
timestamp_(item.timestamp_), |
- is_overriding_user_agent_(item.is_overriding_user_agent_), |
+ user_agent_type_(item.user_agent_type_), |
http_request_headers_([item.http_request_headers_ copy]), |
serialized_state_object_([item.serialized_state_object_ copy]), |
is_created_from_push_state_(item.is_created_from_push_state_), |
@@ -206,13 +206,12 @@ static int GetUniqueIDInConstructor() { |
return timestamp_; |
} |
-void NavigationItemImpl::SetIsOverridingUserAgent( |
- bool is_overriding_user_agent) { |
- is_overriding_user_agent_ = is_overriding_user_agent; |
+void NavigationItemImpl::SetUserAgentType(UserAgentType type) { |
+ user_agent_type_ = type; |
} |
-bool NavigationItemImpl::IsOverridingUserAgent() const { |
- return is_overriding_user_agent_; |
+UserAgentType NavigationItemImpl::GetUserAgentType() const { |
+ return user_agent_type_; |
} |
bool NavigationItemImpl::HasPostData() const { |