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

Unified Diff: ios/web/navigation/navigation_manager_impl_unittest.mm

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: fix GetLastCommittedWebItem 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_manager_impl_unittest.mm
diff --git a/ios/web/navigation/navigation_manager_impl_unittest.mm b/ios/web/navigation/navigation_manager_impl_unittest.mm
index 420beea84ab5559fe84a6a7da9b5d0718590d983..1bb3d8bcb761dd78cb115558a8da9a7d8f734a77 100644
--- a/ios/web/navigation/navigation_manager_impl_unittest.mm
+++ b/ios/web/navigation/navigation_manager_impl_unittest.mm
@@ -515,7 +515,7 @@ void OnNavigationItemCommitted(const LoadCommittedDetails&) override {}
web::NavigationInitiationType::USER_INITIATED);
[session_controller() commitPendingItem];
NavigationItem* visible_item = navigation_manager()->GetVisibleItem();
- EXPECT_TRUE(visible_item->IsOverridingUserAgent());
+ EXPECT_EQ(visible_item->GetUserAgentType(), UserAgentType::DESKTOP);
}
Eugene But (OOO till 7-30) 2017/02/25 01:51:52 There was quite a few logic changes in the code. C
kkhorimoto 2017/02/27 23:29:04 Done.
} // namespace web

Powered by Google App Engine
This is Rietveld 408576698