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

Unified Diff: ios/chrome/browser/tabs/tab_unittest.mm

Issue 2921063002: Clean up CRWSessionController usage in TabTest and TabModelTest. (Closed)
Patch Set: rebase Created 3 years, 7 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 | « ios/chrome/browser/tabs/tab_model_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/tabs/tab_unittest.mm
diff --git a/ios/chrome/browser/tabs/tab_unittest.mm b/ios/chrome/browser/tabs/tab_unittest.mm
index 6b4f1c02f22239cb1b35795085d740796da36d53..8ff8547b31db594dd0a3d772d24f9c477254be9b 100644
--- a/ios/chrome/browser/tabs/tab_unittest.mm
+++ b/ios/chrome/browser/tabs/tab_unittest.mm
@@ -39,7 +39,6 @@
#import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_whitelist_manager.h"
#include "ios/public/provider/chrome/browser/test_chrome_browser_provider.h"
#import "ios/testing/ocmock_complex_type_helper.h"
-#import "ios/web/navigation/crw_session_controller.h"
#import "ios/web/navigation/navigation_manager_impl.h"
#include "ios/web/public/navigation_item.h"
#import "ios/web/public/navigation_manager.h"
@@ -251,7 +250,7 @@ void BrowseTo(const GURL& userUrl, const GURL& redirectUrl, NSString* title) {
web_state_impl_.get(), redirectUrl,
ui::PageTransition::PAGE_TRANSITION_TYPED);
web_state_impl_->OnNavigationStarted(context2.get());
- [[tab_ navigationManagerImpl]->GetSessionController() commitPendingItem];
+ [tab_ navigationManagerImpl]->CommitPendingItem();
web_state_impl_->UpdateHttpResponseHeaders(redirectUrl);
web_state_impl_->OnNavigationFinished(context2.get());
« no previous file with comments | « ios/chrome/browser/tabs/tab_model_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698