OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/public/common/password_form.h" | 5 #include "content/public/common/password_form.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 PasswordForm::PasswordForm() | 9 PasswordForm::PasswordForm() |
10 : scheme(SCHEME_HTML), | 10 : scheme(SCHEME_HTML), |
11 password_autocomplete_set(true), | 11 password_autocomplete_set(true), |
12 ssl_valid(false), | 12 ssl_valid(false), |
13 preferred(false), | 13 preferred(false), |
14 blacklisted_by_user(false), | 14 blacklisted_by_user(false), |
15 type(TYPE_MANUAL), | 15 type(TYPE_MANUAL), |
16 times_used(0) { | 16 times_used(0) { |
17 } | 17 } |
18 | 18 |
19 PasswordForm::~PasswordForm() { | 19 PasswordForm::~PasswordForm() { |
20 } | 20 } |
21 | 21 |
| 22 bool PasswordForm::IsPublicSuffixMatch() const { |
| 23 return !original_signon_realm.empty(); |
| 24 } |
| 25 |
22 } // namespace content | 26 } // namespace content |
OLD | NEW |