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

Unified Diff: ios/chrome/browser/native_app_launcher/native_app_navigation_util_unittest.mm

Issue 2698773002: [iOS] Refactoring web CRWSessionController user agent code. (Closed)
Patch Set: Fix unit tests and rebase 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
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/tab.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/native_app_launcher/native_app_navigation_util_unittest.mm
diff --git a/ios/chrome/browser/native_app_launcher/native_app_navigation_util_unittest.mm b/ios/chrome/browser/native_app_launcher/native_app_navigation_util_unittest.mm
index 2dfd71b2f5d6e6e2ccb759b452cc5248f66e7d3b..d02e65fd018170a64cb9f713a9b05ccf7c2f1d32 100644
--- a/ios/chrome/browser/native_app_launcher/native_app_navigation_util_unittest.mm
+++ b/ios/chrome/browser/native_app_launcher/native_app_navigation_util_unittest.mm
@@ -37,10 +37,9 @@ void TearDown() override {
void AddItem(const std::string& url_spec, ui::PageTransition transition) {
CRWSessionController* session_controller =
web_state_->GetNavigationManagerImpl().GetSessionController();
- [session_controller addPendingItem:GURL(url_spec)
- referrer:web::Referrer()
- transition:transition
- rendererInitiated:NO];
+ web_state_->GetNavigationManagerImpl().AddPendingItem(
+ GURL(url_spec), web::Referrer(), transition,
+ web::NavigationInitiationType::USER_INITIATED);
[session_controller commitPendingItem];
}
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/tab.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698