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

Unified Diff: ios/web/test/web_int_test.mm

Issue 2777243004: Allow URL loading if WebState::GetView was not called. (Closed)
Patch Set: N 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/chrome/browser/tabs/tab.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/test/web_int_test.mm
diff --git a/ios/web/test/web_int_test.mm b/ios/web/test/web_int_test.mm
index edd8ad3d7d0376ed2bcec709f4aa51adf4f7c78b..579574a303d68ab867c261d3e958eaeb93877305 100644
--- a/ios/web/test/web_int_test.mm
+++ b/ios/web/test/web_int_test.mm
@@ -64,14 +64,7 @@ void WebIntTest::SetUp() {
// Create the WebState.
web::WebState::CreateParams web_state_create_params(GetBrowserState());
web_state_ = web::WebState::Create(web_state_create_params);
-
- // Resize the webview so that pages can be properly rendered.
- web_state()->GetView().frame =
- [UIApplication sharedApplication].keyWindow.bounds;
-
- // Enable web usage for the WebState.
web_state()->SetWebUsageEnabled(true);
-
web_state()->SetDelegate(&web_state_delegate_);
}
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698