OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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. |
| 4 |
| 5 #include "components/password_manager/core/browser/login_model.h" |
| 6 |
| 7 namespace password_manager { |
| 8 |
| 9 LoginModelObserver::LoginModelObserver() {} |
| 10 |
| 11 LoginModelObserver::~LoginModelObserver() {} |
| 12 |
| 13 void LoginModelObserver::OnAutofillDataAvailable( |
| 14 const autofill::PasswordForm& credentials) { |
| 15 DCHECK(!signon_realm_.empty()) |
| 16 << "The model did not call set_signon_realm properly."; |
| 17 |
| 18 if (credentials.signon_realm == signon_realm_) { |
| 19 OnAutofillDataAvailableInternal(credentials.username_value, |
| 20 credentials.password_value); |
| 21 } |
| 22 } |
| 23 |
| 24 LoginModel::LoginModel() {} |
| 25 LoginModel::~LoginModel() {} |
| 26 |
| 27 } // namespace password_manager |
OLD | NEW |