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

Side by Side Diff: components/autofill/core/common/password_form.cc

Issue 1028163002: Processing USERNAME reply from Autofill server in Password Manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's comments addressed Created 5 years, 9 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <ostream> 5 #include <ostream>
6 6
7 #include "base/strings/string16.h" 7 #include "base/strings/string16.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/autofill/core/common/password_form.h" 10 #include "components/autofill/core/common/password_form.h"
11 11
12 namespace autofill { 12 namespace autofill {
13 13
14 PasswordForm::PasswordForm() 14 PasswordForm::PasswordForm()
15 : scheme(SCHEME_HTML), 15 : scheme(SCHEME_HTML),
16 username_marked_by_site(false), 16 username_marked_by_site(false),
17 password_autocomplete_set(true), 17 password_autocomplete_set(true),
18 ssl_valid(false), 18 ssl_valid(false),
19 preferred(false), 19 preferred(false),
20 blacklisted_by_user(false), 20 blacklisted_by_user(false),
21 type(TYPE_MANUAL), 21 type(TYPE_MANUAL),
22 times_used(0), 22 times_used(0),
23 generation_upload_status(NO_SIGNAL_SENT), 23 generation_upload_status(NO_SIGNAL_SENT),
24 skip_zero_click(false) { 24 skip_zero_click(false),
25 parsed_using_autofill_predictions(false) {
25 } 26 }
26 27
27 PasswordForm::~PasswordForm() { 28 PasswordForm::~PasswordForm() {
28 } 29 }
29 30
30 bool PasswordForm::IsPublicSuffixMatch() const { 31 bool PasswordForm::IsPublicSuffixMatch() const {
31 return !original_signon_realm.empty(); 32 return !original_signon_realm.empty();
32 } 33 }
33 34
34 bool PasswordForm::operator==(const PasswordForm& form) const { 35 bool PasswordForm::operator==(const PasswordForm& form) const {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 << " times_used: " << form.times_used 95 << " times_used: " << form.times_used
95 << " form_data: " << form.form_data 96 << " form_data: " << form.form_data
96 << " generation_upload_status: " << form.generation_upload_status 97 << " generation_upload_status: " << form.generation_upload_status
97 << " display_name: " << base::UTF16ToUTF8(form.display_name) 98 << " display_name: " << base::UTF16ToUTF8(form.display_name)
98 << " avatar_url: " << form.avatar_url 99 << " avatar_url: " << form.avatar_url
99 << " federation_url: " << form.federation_url 100 << " federation_url: " << form.federation_url
100 << " skip_next_zero_click: " << form.skip_zero_click; 101 << " skip_next_zero_click: " << form.skip_zero_click;
101 } 102 }
102 103
103 } // namespace autofill 104 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698