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

Side by Side Diff: ios/web/payments/payment_request.cc

Issue 2333483002: Remove deprecated version of PaymentResponse::ToDictionaryValue. (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | ios/web/public/payments/payment_request.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | ios/web/public/payments/payment_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698