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

Unified Diff: ios/chrome/browser/ui/payments/payment_request_manager.mm

Issue 2949883002: [Payment Request] null checks _webState instance before calling a method on. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/payments/payment_request_manager.mm
diff --git a/ios/chrome/browser/ui/payments/payment_request_manager.mm b/ios/chrome/browser/ui/payments/payment_request_manager.mm
index 72fee7b2520f4e65efe944be89fc65a6fb726590..005f6e625562e06813b3edf6eeb8bcaeccfa841a 100644
--- a/ios/chrome/browser/ui/payments/payment_request_manager.mm
+++ b/ios/chrome/browser/ui/payments/payment_request_manager.mm
@@ -310,7 +310,7 @@ struct PendingPaymentResponse {
}
- (void)disableCurrentWebState {
- if (_webStateEnabled) {
+ if (_webState && _webStateEnabled) {
_webState->RemoveScriptCommandCallback(kCommandPrefix);
_webStateEnabled = NO;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698