| 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 #include "ios/web/public/payments/payment_request.h" | 5 #include "ios/web/public/payments/payment_request.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 const { | 327 const { |
| 328 std::unique_ptr<base::DictionaryValue> result(new base::DictionaryValue()); | 328 std::unique_ptr<base::DictionaryValue> result(new base::DictionaryValue()); |
| 329 | 329 |
| 330 if (!this->method_name.empty()) | 330 if (!this->method_name.empty()) |
| 331 result->SetString(kMethodName, this->method_name); | 331 result->SetString(kMethodName, this->method_name); |
| 332 result->Set(kPaymentDetails, this->details.ToDictionaryValue()); | 332 result->Set(kPaymentDetails, this->details.ToDictionaryValue()); |
| 333 | 333 |
| 334 return result; | 334 return result; |
| 335 } | 335 } |
| 336 | 336 |
| 337 void PaymentResponse::ToDictionaryValue(base::DictionaryValue* value) const { | |
| 338 value->MergeDictionary(ToDictionaryValue().get()); | |
| 339 } | |
| 340 | |
| 341 } // namespace web | 337 } // namespace web |
| OLD | NEW |