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

Side by Side Diff: components/password_manager/content/browser/credential_manager_impl.cc

Issue 2133953002: PasswordForm -> FormDigest for GetLogins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@413020_ssl_valid
Patch Set: Just rebased Created 4 years, 5 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 2014 The Chromium Authors. All rights reserved. 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 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 "components/password_manager/content/browser/credential_manager_impl.h" 5 #include "components/password_manager/content/browser/credential_manager_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 } 251 }
252 } 252 }
253 } 253 }
254 SendCredential(send_callback, info); 254 SendCredential(send_callback, info);
255 } 255 }
256 256
257 PasswordManagerClient* CredentialManagerImpl::client() const { 257 PasswordManagerClient* CredentialManagerImpl::client() const {
258 return client_; 258 return client_;
259 } 259 }
260 260
261 autofill::PasswordForm CredentialManagerImpl::GetSynthesizedFormForOrigin() 261 PasswordStore::FormDigest CredentialManagerImpl::GetSynthesizedFormForOrigin()
262 const { 262 const {
263 autofill::PasswordForm synthetic_form; 263 PasswordStore::FormDigest digest = {
264 synthetic_form.origin = web_contents()->GetLastCommittedURL().GetOrigin(); 264 autofill::PasswordForm::SCHEME_HTML, std::string(),
265 synthetic_form.signon_realm = synthetic_form.origin.spec(); 265 web_contents()->GetLastCommittedURL().GetOrigin()};
266 synthetic_form.scheme = autofill::PasswordForm::SCHEME_HTML; 266 digest.signon_realm = digest.origin.spec();
267 return synthetic_form; 267 return digest;
268 } 268 }
269 269
270 void CredentialManagerImpl::DoneRequiringUserMediation() { 270 void CredentialManagerImpl::DoneRequiringUserMediation() {
271 DCHECK(pending_require_user_mediation_); 271 DCHECK(pending_require_user_mediation_);
272 pending_require_user_mediation_.reset(); 272 pending_require_user_mediation_.reset();
273 } 273 }
274 274
275 bool CredentialManagerImpl::IsUpdatingCredentialAllowed() const { 275 bool CredentialManagerImpl::IsUpdatingCredentialAllowed() const {
276 return !client_->DidLastPageLoadEncounterSSLErrors() && 276 return !client_->DidLastPageLoadEncounterSSLErrors() &&
277 !client_->IsOffTheRecord(); 277 !client_->IsOffTheRecord();
278 } 278 }
279 279
280 } // namespace password_manager 280 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698