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

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

Issue 2655463014: Pass the correct webState to the nativeContent. (Closed)
Patch Set: s/ithW// Created 3 years, 11 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_native_content_provider.mm
diff --git a/ios/web/public/test/fakes/test_native_content_provider.mm b/ios/web/public/test/fakes/test_native_content_provider.mm
index 43994f340b55ce390e723cd87d454d13bfe93658..4a026aecd0bf7c4181952870a7a81a6a63943752 100644
--- a/ios/web/public/test/fakes/test_native_content_provider.mm
+++ b/ios/web/public/test/fakes/test_native_content_provider.mm
@@ -20,7 +20,8 @@
return _nativeContent.find(URL) != _nativeContent.end();
}
-- (id<CRWNativeContent>)controllerForURL:(const GURL&)URL {
+- (id<CRWNativeContent>)controllerForURL:(const GURL&)URL
+ webState:(web::WebState*)webState {
auto nativeContent = _nativeContent.find(URL);
if (nativeContent == _nativeContent.end()) {
return nil;
« no previous file with comments | « ios/chrome/browser/ui/preload_controller.mm ('k') | ios/web/public/web_state/ui/crw_native_content_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698