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

Unified Diff: ios/web/webui/web_ui_mojo_inttest.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/webui/crw_web_ui_manager_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/web_ui_mojo_inttest.mm
diff --git a/ios/web/webui/web_ui_mojo_inttest.mm b/ios/web/webui/web_ui_mojo_inttest.mm
index cd69059a5afa0a8722a2064b1b0af39f201a861f..d709279c517a370eaca5ade16f4265ec98bc9e6d 100644
--- a/ios/web/webui/web_ui_mojo_inttest.mm
+++ b/ios/web/webui/web_ui_mojo_inttest.mm
@@ -132,10 +132,10 @@ explicit TestWebUIControllerFactory(TestUIHandler* ui_handler)
// A test fixture for verifying mojo comminication for WebUI.
class WebUIMojoTest : public WebIntTest {
protected:
- WebUIMojoTest()
- : web_state_(new WebStateImpl(GetBrowserState())),
- ui_handler_(new TestUIHandler()) {
- web_state_->GetNavigationManagerImpl().InitializeSession(NO);
+ WebUIMojoTest() : ui_handler_(new TestUIHandler()) {
+ web::WebState::CreateParams params(GetBrowserState());
+ web_state_ = base::MakeUnique<web::WebStateImpl>(params);
+ web_state_->GetNavigationManagerImpl().InitializeSession();
WebUIIOSControllerFactory::RegisterFactory(
new TestWebUIControllerFactory(ui_handler_.get()));
}
« no previous file with comments | « ios/web/webui/crw_web_ui_manager_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698