| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "ios/chrome/browser/payments/payment_request_coordinator.h" | 5 #import "ios/chrome/browser/payments/payment_request_coordinator.h" |
| 6 | 6 |
| 7 #include <unordered_set> | 7 #include <unordered_set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 [[self baseViewController] presentViewController:_navigationController | 164 [[self baseViewController] presentViewController:_navigationController |
| 165 animated:YES | 165 animated:YES |
| 166 completion:nil]; | 166 completion:nil]; |
| 167 } | 167 } |
| 168 | 168 |
| 169 - (void)stop { | 169 - (void)stop { |
| 170 [[_navigationController presentingViewController] | 170 [[_navigationController presentingViewController] |
| 171 dismissViewControllerAnimated:YES | 171 dismissViewControllerAnimated:YES |
| 172 completion:nil]; | 172 completion:nil]; |
| 173 [_itemsDisplayCoordinator stop]; |
| 173 _itemsDisplayCoordinator = nil; | 174 _itemsDisplayCoordinator = nil; |
| 175 [_shippingAddressSelectionCoordinator stop]; |
| 174 _shippingAddressSelectionCoordinator = nil; | 176 _shippingAddressSelectionCoordinator = nil; |
| 177 [_shippingOptionSelectionCoordinator stop]; |
| 175 _shippingOptionSelectionCoordinator = nil; | 178 _shippingOptionSelectionCoordinator = nil; |
| 179 [_methodSelectionCoordinator stop]; |
| 176 _methodSelectionCoordinator = nil; | 180 _methodSelectionCoordinator = nil; |
| 181 [_errorCoordinator stop]; |
| 177 _errorCoordinator = nil; | 182 _errorCoordinator = nil; |
| 178 _viewController = nil; | 183 _viewController = nil; |
| 179 _navigationController = nil; | 184 _navigationController = nil; |
| 180 } | 185 } |
| 181 | 186 |
| 182 - (void)sendPaymentResponse { | 187 - (void)sendPaymentResponse { |
| 183 DCHECK(_paymentRequest->selected_credit_card()); | 188 DCHECK(_paymentRequest->selected_credit_card()); |
| 184 autofill::CreditCard* card = _paymentRequest->selected_credit_card(); | 189 autofill::CreditCard* card = _paymentRequest->selected_credit_card(); |
| 185 _fullCardRequester = base::MakeUnique<FullCardRequester>( | 190 _fullCardRequester = base::MakeUnique<FullCardRequester>( |
| 186 self, _navigationController, _browserState); | 191 self, _navigationController, _browserState); |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 - (void)paymentMethodSelectionCoordinatorDidReturn: | 453 - (void)paymentMethodSelectionCoordinatorDidReturn: |
| 449 (PaymentMethodSelectionCoordinator*)coordinator { | 454 (PaymentMethodSelectionCoordinator*)coordinator { |
| 450 // Clear the 'Updated' label on the payment summary item, if there is one. | 455 // Clear the 'Updated' label on the payment summary item, if there is one. |
| 451 [_viewController updatePaymentSummaryWithTotalValueChanged:NO]; | 456 [_viewController updatePaymentSummaryWithTotalValueChanged:NO]; |
| 452 | 457 |
| 453 [_methodSelectionCoordinator stop]; | 458 [_methodSelectionCoordinator stop]; |
| 454 _methodSelectionCoordinator = nil; | 459 _methodSelectionCoordinator = nil; |
| 455 } | 460 } |
| 456 | 461 |
| 457 @end | 462 @end |
| OLD | NEW |