Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / components / autofill / core / browser / suggestion.cc
blobc5b150eb7673a508f13dcd137872764bf48d19e3
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),
15 match(PREFIX_MATCH) {
18 Suggestion::Suggestion(const Suggestion& other)
19 : backend_id(other.backend_id),
20 frontend_id(other.frontend_id),
21 value(other.value),
22 label(other.label),
23 icon(other.icon),
24 match(other.match) {
27 Suggestion::Suggestion(const base::string16& v)
28 : frontend_id(0),
29 value(v),
30 match(PREFIX_MATCH) {
33 Suggestion::Suggestion(const std::string& v,
34 const std::string& l,
35 const std::string& i,
36 int fid)
37 : frontend_id(fid),
38 value(base::UTF8ToUTF16(v)),
39 label(base::UTF8ToUTF16(l)),
40 icon(base::UTF8ToUTF16(i)),
41 match(PREFIX_MATCH) {
44 Suggestion::~Suggestion() {
47 } // namespace autofill