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

Unified Diff: ios/web/public/test/fakes/test_web_state_delegate.mm

Issue 2755823002: Moved |openedByDOM| to WebState's CreateParams and public interface. (Closed)
Patch Set: BVC session controller cleanup 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
Index: ios/web/public/test/fakes/test_web_state_delegate.mm
diff --git a/ios/web/public/test/fakes/test_web_state_delegate.mm b/ios/web/public/test/fakes/test_web_state_delegate.mm
index 08fba8d5210e4346a6c066c0cf2bfbc291c29094..dbe1663fef01cc5576002eec2d554e1900fa24db 100644
--- a/ios/web/public/test/fakes/test_web_state_delegate.mm
+++ b/ios/web/public/test/fakes/test_web_state_delegate.mm
@@ -55,9 +55,9 @@
return nullptr;
}
- std::unique_ptr<WebStateImpl> child(
- base::MakeUnique<WebStateImpl>(source->GetBrowserState()));
- child->GetNavigationManagerImpl().InitializeSession(YES /*opened_by_dom*/);
+ web::WebState::CreateParams params(source->GetBrowserState());
+ params.opened_by_dom = true;
+ std::unique_ptr<web::WebState> child = web::WebState::Create(params);
child->SetWebUsageEnabled(true);
child_windows_.push_back(std::move(child));

Powered by Google App Engine
This is Rietveld 408576698