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

Unified Diff: ios/web/navigation/navigation_item_storage_builder.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/web/navigation/navigation_item_storage_builder.mm
diff --git a/ios/web/navigation/navigation_item_storage_builder.mm b/ios/web/navigation/navigation_item_storage_builder.mm
index 286501c0b5b7895afa4eaef41da2fb31dafebb20..0f3df37eca3bb81883930af55045a116930389f8 100644
--- a/ios/web/navigation/navigation_item_storage_builder.mm
+++ b/ios/web/navigation/navigation_item_storage_builder.mm
@@ -24,7 +24,7 @@
storage.displayState = navigation_item->GetPageDisplayState();
storage.shouldSkipRepostFormConfirmation =
navigation_item->ShouldSkipRepostFormConfirmation();
- storage.overridingUserAgent = navigation_item->IsOverridingUserAgent();
+ storage.userAgentType = navigation_item->GetUserAgentType();
storage.POSTData = navigation_item->GetPostData();
storage.HTTPRequestHeaders = navigation_item->GetHttpRequestHeaders();
return storage;
@@ -46,7 +46,7 @@
item->page_display_state_ = navigation_item_storage.displayState;
item->should_skip_repost_form_confirmation_ =
navigation_item_storage.shouldSkipRepostFormConfirmation;
- item->is_overriding_user_agent_ = navigation_item_storage.overridingUserAgent;
+ item->user_agent_type_ = navigation_item_storage.userAgentType;
item->post_data_.reset(navigation_item_storage.POSTData);
item->http_request_headers_.reset(
[navigation_item_storage.HTTPRequestHeaders mutableCopy]);

Powered by Google App Engine
This is Rietveld 408576698