[Media Router] Add integration tests and e2e tests for media router and presentation...
[chromium-blink-merge.git] / components / autofill / core / browser / suggestion.cc
blobc46d30271c9a8bbc1cba9e1f5ebb42a5387158b0
1 // Copyright 2014 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.
5 #include "components/autofill/core/browser/suggestion.h"
7 #include "base/strings/utf_string_conversions.h"
8 #include "components/autofill/core/browser/autofill_profile.h"
9 #include "components/autofill/core/browser/credit_card.h"
11 namespace autofill {
13 Suggestion::Suggestion()
14 : frontend_id(0) {
17 Suggestion::Suggestion(const Suggestion& other)
18 : backend_id(other.backend_id),
19 frontend_id(other.frontend_id),
20 value(other.value),
21 label(other.label),
22 icon(other.icon) {
25 Suggestion::Suggestion(const base::string16& v)
26 : frontend_id(0),
27 value(v) {
30 Suggestion::Suggestion(const std::string& v,
31 const std::string& l,
32 const std::string& i,
33 int fid)
34 : frontend_id(fid),
35 value(base::UTF8ToUTF16(v)),
36 label(base::UTF8ToUTF16(l)),
37 icon(base::UTF8ToUTF16(i)) {
40 Suggestion::~Suggestion() {
43 } // namespace autofill