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

Unified Diff: ios/web/public/test/web_test_with_web_state.mm

Issue 2755823002: Moved |openedByDOM| to WebState's CreateParams and public interface. (Closed)
Patch Set: . Created 3 years, 9 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/web/public/test/fakes/test_web_state_delegate.mm ('k') | ios/web/public/web_state/web_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/web_test_with_web_state.mm
diff --git a/ios/web/public/test/web_test_with_web_state.mm b/ios/web/public/test/web_test_with_web_state.mm
index 9b09c9e1183b105e55860c0ce93a9e9a2e7609df..9ee621e25276d62409c556f40ac4e203b2dc5f8d 100644
--- a/ios/web/public/test/web_test_with_web_state.mm
+++ b/ios/web/public/test/web_test_with_web_state.mm
@@ -29,13 +29,12 @@
void WebTestWithWebState::SetUp() {
WebTest::SetUp();
- std::unique_ptr<WebStateImpl> web_state(new WebStateImpl(GetBrowserState()));
- web_state->GetNavigationManagerImpl().InitializeSession(NO);
- web_state->SetWebUsageEnabled(true);
- web_state_.reset(web_state.release());
+ web::WebState::CreateParams params(GetBrowserState());
+ web_state_ = web::WebState::Create(params);
+ web_state_->SetWebUsageEnabled(true);
// Force generation of child views; necessary for some tests.
- [GetWebController(web_state_.get()) triggerPendingLoad];
+ [GetWebController(web_state()) triggerPendingLoad];
}
void WebTestWithWebState::TearDown() {
« no previous file with comments | « ios/web/public/test/fakes/test_web_state_delegate.mm ('k') | ios/web/public/web_state/web_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698