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

Unified Diff: ios/web/web_state/ui/crw_web_controller_unittest.mm

Issue 1891483005: [ios] Added API to enable/disable web usage for WebState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 years, 8 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/web_state/ui/crw_web_controller_unittest.mm
diff --git a/ios/web/web_state/ui/crw_web_controller_unittest.mm b/ios/web/web_state/ui/crw_web_controller_unittest.mm
index 4c07118bb12a2dc500e6036eb02d991d3d80dbe3..815671854afa497e2c710c4c7c6901ddc014f7b4 100644
--- a/ios/web/web_state/ui/crw_web_controller_unittest.mm
+++ b/ios/web/web_state/ui/crw_web_controller_unittest.mm
@@ -919,7 +919,7 @@ class CRWWebControllerWindowOpenTest : public web::WebTestWithWebController {
// Configure child web state.
child_web_state_.reset(new web::WebStateImpl(GetBrowserState()));
- [child_web_state_->GetWebController() setWebUsageEnabled:YES];
+ child_web_state_->SetWebUsageEnabled(true);
[delegate_ setChildWebController:child_web_state_->GetWebController()];
// Configure child web controller's session controller mock.

Powered by Google App Engine
This is Rietveld 408576698