OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/autofill/password_autofill_manager.h" | 5 #include "components/autofill/browser/password_autofill_manager.h" |
6 #include "components/autofill/common/autofill_messages.h" | 6 #include "components/autofill/common/autofill_messages.h" |
7 #include "content/public/browser/render_view_host.h" | 7 #include "content/public/browser/render_view_host.h" |
8 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
9 #include "ui/base/keycodes/keyboard_codes.h" | 9 #include "ui/base/keycodes/keyboard_codes.h" |
10 | 10 |
11 //////////////////////////////////////////////////////////////////////////////// | 11 //////////////////////////////////////////////////////////////////////////////// |
12 // PasswordAutofillManager, public: | 12 // PasswordAutofillManager, public: |
13 | 13 |
14 PasswordAutofillManager::PasswordAutofillManager( | 14 PasswordAutofillManager::PasswordAutofillManager( |
15 content::WebContents* web_contents) : web_contents_(web_contents) { | 15 content::WebContents* web_contents) : web_contents_(web_contents) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 bool PasswordAutofillManager::FindLoginInfo( | 74 bool PasswordAutofillManager::FindLoginInfo( |
75 const FormFieldData& field, | 75 const FormFieldData& field, |
76 PasswordFormFillData* found_password) { | 76 PasswordFormFillData* found_password) { |
77 LoginToPasswordInfoMap::iterator iter = login_to_password_info_.find(field); | 77 LoginToPasswordInfoMap::iterator iter = login_to_password_info_.find(field); |
78 if (iter == login_to_password_info_.end()) | 78 if (iter == login_to_password_info_.end()) |
79 return false; | 79 return false; |
80 | 80 |
81 *found_password = iter->second; | 81 *found_password = iter->second; |
82 return true; | 82 return true; |
83 } | 83 } |
OLD | NEW |