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

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

Issue 1151373006: Update Confirmation UI for saved password change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up Created 5 years, 6 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 #include <sstream> 6 #include <sstream>
7 7
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 new_password_marked_by_site(false), 70 new_password_marked_by_site(false),
71 ssl_valid(false), 71 ssl_valid(false),
72 preferred(false), 72 preferred(false),
73 blacklisted_by_user(false), 73 blacklisted_by_user(false),
74 type(TYPE_MANUAL), 74 type(TYPE_MANUAL),
75 times_used(0), 75 times_used(0),
76 generation_upload_status(NO_SIGNAL_SENT), 76 generation_upload_status(NO_SIGNAL_SENT),
77 skip_zero_click(false), 77 skip_zero_click(false),
78 layout(Layout::LAYOUT_OTHER), 78 layout(Layout::LAYOUT_OTHER),
79 was_parsed_using_autofill_predictions(false), 79 was_parsed_using_autofill_predictions(false),
80 is_alive(true) { 80 is_alive(true),
81 is_password_change_form_without_username(false) {
81 } 82 }
82 83
83 PasswordForm::~PasswordForm() { 84 PasswordForm::~PasswordForm() {
84 CHECK(is_alive); 85 CHECK(is_alive);
85 is_alive = false; 86 is_alive = false;
86 } 87 }
87 88
88 bool PasswordForm::IsPublicSuffixMatch() const { 89 bool PasswordForm::IsPublicSuffixMatch() const {
89 CHECK(is_alive); 90 CHECK(is_alive);
90 return !original_signon_realm.empty(); 91 return !original_signon_realm.empty();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 form_json, base::JSONWriter::OPTIONS_PRETTY_PRINT, &form_as_string); 164 form_json, base::JSONWriter::OPTIONS_PRETTY_PRINT, &form_as_string);
164 base::TrimWhitespaceASCII(form_as_string, base::TRIM_ALL, &form_as_string); 165 base::TrimWhitespaceASCII(form_as_string, base::TRIM_ALL, &form_as_string);
165 return os << "PasswordForm(" << form_as_string << ")"; 166 return os << "PasswordForm(" << form_as_string << ")";
166 } 167 }
167 168
168 std::ostream& operator<<(std::ostream& os, PasswordForm* form) { 169 std::ostream& operator<<(std::ostream& os, PasswordForm* form) {
169 return os << "&" << *form; 170 return os << "&" << *form;
170 } 171 }
171 172
172 } // namespace autofill 173 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698