| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/autofill/wallet/cart.h" | 5 #include "components/autofill/browser/wallet/cart.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 | 8 |
| 9 namespace autofill { | 9 namespace autofill { |
| 10 namespace wallet { | 10 namespace wallet { |
| 11 | 11 |
| 12 Cart::Cart(const std::string& total_price, const std::string& currency_code) | 12 Cart::Cart(const std::string& total_price, const std::string& currency_code) |
| 13 : total_price_(total_price), currency_code_(currency_code) {} | 13 : total_price_(total_price), currency_code_(currency_code) {} |
| 14 | 14 |
| 15 Cart::~Cart() {} | 15 Cart::~Cart() {} |
| 16 | 16 |
| 17 scoped_ptr<base::DictionaryValue> Cart::ToDictionary() const { | 17 scoped_ptr<base::DictionaryValue> Cart::ToDictionary() const { |
| 18 base::DictionaryValue* dict = new base::DictionaryValue(); | 18 base::DictionaryValue* dict = new base::DictionaryValue(); |
| 19 dict->SetString("total_price", total_price_); | 19 dict->SetString("total_price", total_price_); |
| 20 dict->SetString("currency_code", currency_code_); | 20 dict->SetString("currency_code", currency_code_); |
| 21 return scoped_ptr<base::DictionaryValue>(dict); | 21 return scoped_ptr<base::DictionaryValue>(dict); |
| 22 } | 22 } |
| 23 | 23 |
| 24 } // namespace wallet | 24 } // namespace wallet |
| 25 } // namespace autofill | 25 } // namespace autofill |
| OLD | NEW |