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

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

Issue 2655463014: Pass the correct webState to the nativeContent. (Closed)
Patch Set: extend nativeprovider 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..5b5e36a9fbe5436efa515f14cecbb1f0bf722483 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
+ withWebState:(web::WebState*)webState {
auto nativeContent = _nativeContent.find(URL);
if (nativeContent == _nativeContent.end()) {
return nil;

Powered by Google App Engine
This is Rietveld 408576698