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

Side by Side Diff: chrome/browser/autofill/wallet/cart.cc

Issue 11293078: Integrating Online Wallet into Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing HexStringToInt Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/autofill/wallet/cart.h ('k') | chrome/browser/autofill/wallet/cart_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/autofill/wallet/cart.h"
6
7 #include "base/values.h"
8
9 namespace wallet {
10
11 Cart::Cart(const std::string& total_price, const std::string& currency_code)
12 : total_price_(total_price), currency_code_(currency_code) {}
13
14 Cart::~Cart() {}
15
16 scoped_ptr<base::DictionaryValue> Cart::ToDictionary() const {
17 base::DictionaryValue* dict = new base::DictionaryValue();
18 dict->SetString("total_price", total_price_);
19 dict->SetString("currency_code", currency_code_);
20 return scoped_ptr<base::DictionaryValue>(dict);
21 }
22
23 } // namespace wallet
24
OLDNEW
« no previous file with comments | « chrome/browser/autofill/wallet/cart.h ('k') | chrome/browser/autofill/wallet/cart_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698