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

Side by Side Diff: components/password_manager/core/browser/login_model.cc

Issue 1421013003: [Merge in M47] Do not involve PasswordManagerDriver in filling HTTP-auth forms; also check realm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2526
Patch Set: Created 5 years, 2 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698