| Index: ios/web/navigation/crw_navigation_item_storage_unittest.mm
|
| diff --git a/ios/web/navigation/crw_navigation_item_storage_unittest.mm b/ios/web/navigation/crw_navigation_item_storage_unittest.mm
|
| index 2daffa6433e88ad832d087aebb4280229113ef15..4f107018bda2e5c8bebdd496aab7cfe9a5e3ad0c 100644
|
| --- a/ios/web/navigation/crw_navigation_item_storage_unittest.mm
|
| +++ b/ios/web/navigation/crw_navigation_item_storage_unittest.mm
|
| @@ -36,6 +36,7 @@
|
| [item_storage_
|
| setPOSTData:[@"Test data" dataUsingEncoding:NSUTF8StringEncoding]];
|
| [item_storage_ setHTTPRequestHeaders:@{ @"HeaderKey" : @"HeaderValue" }];
|
| + [item_storage_ setUserAgentType:web::UserAgentType::DESKTOP];
|
| }
|
|
|
| // Convenience getter to facilitate dot notation in tests.
|
| @@ -66,9 +67,9 @@
|
| item_storage().displayState.GetSerialization();
|
| [archiver encodeObject:display_state_dict
|
| forKey:web::kNavigationItemStoragePageDisplayStateKey];
|
| - BOOL overriding_user_agent = item_storage().overridingUserAgent;
|
| - [archiver encodeBool:overriding_user_agent
|
| - forKey:web::kNavigationItemStorageUseDesktopUserAgentKey];
|
| + [archiver
|
| + encodeBool:YES
|
| + forKey:web::kNavigationItemStorageUseDesktopUserAgentDeprecatedKey];
|
| NSDictionary* request_headers = item_storage().HTTPRequestHeaders;
|
| [archiver encodeObject:request_headers
|
| forKey:web::kNavigationItemStorageHTTPRequestHeadersKey];
|
|
|