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

Unified Diff: ios/web/shell/view_controller.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/shell/view_controller.mm
diff --git a/ios/web/shell/view_controller.mm b/ios/web/shell/view_controller.mm
index bab562da4deaa3be275238c759775efedf7358e6..1d541061cbf792a066a0c78679b78381d1fd3306 100644
--- a/ios/web/shell/view_controller.mm
+++ b/ios/web/shell/view_controller.mm
@@ -20,7 +20,6 @@
#import "ios/web/public/web_state/web_state_delegate_bridge.h"
#import "ios/web/public/web_state/web_state_observer_bridge.h"
#include "ios/web/shell/shell_browser_state.h"
-#include "ios/web/web_state/ui/crw_web_controller.h"
#include "ios/web/web_state/web_state_impl.h"
#include "ui/base/page_transition_types.h"
@@ -114,7 +113,7 @@ using web::NavigationManager;
_webState.reset(new web::WebStateImpl(_browserState));
_webState->GetNavigationManagerImpl().InitializeSession(nil, nil, NO, 0);
- [_webState->GetWebController() setWebUsageEnabled:YES];
+ _webState->SetWebUsageEnabled(true);
_webStateObserver.reset(
new web::WebStateObserverBridge(_webState.get(), self));
« ios/web/shell/DEPS ('K') | « ios/web/shell/DEPS ('k') | ios/web/test/web_test.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698