blob: b6f41a415af9c96705f9739e9938001326c9a180 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/autofill/browser/wallet/cart.h"
#include "base/values.h"
namespace autofill {
namespace wallet {
Cart::Cart(const std::string& total_price, const std::string& currency_code)
: total_price_(total_price), currency_code_(currency_code) {}
Cart::~Cart() {}
scoped_ptr<base::DictionaryValue> Cart::ToDictionary() const {
base::DictionaryValue* dict = new base::DictionaryValue();
dict->SetString("total_price", total_price_);
dict->SetString("currency_code", currency_code_);
return scoped_ptr<base::DictionaryValue>(dict);
}
} // namespace wallet
} // namespace autofill
|