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 "components/autofill/browser/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/core/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 namespace autofill { | 11 namespace autofill { |
12 | 12 |
13 //////////////////////////////////////////////////////////////////////////////// | 13 //////////////////////////////////////////////////////////////////////////////// |
14 // PasswordAutofillManager, public: | 14 // PasswordAutofillManager, public: |
15 | 15 |
16 PasswordAutofillManager::PasswordAutofillManager( | 16 PasswordAutofillManager::PasswordAutofillManager( |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 PasswordFormFillData* found_password) { | 87 PasswordFormFillData* found_password) { |
88 LoginToPasswordInfoMap::iterator iter = login_to_password_info_.find(field); | 88 LoginToPasswordInfoMap::iterator iter = login_to_password_info_.find(field); |
89 if (iter == login_to_password_info_.end()) | 89 if (iter == login_to_password_info_.end()) |
90 return false; | 90 return false; |
91 | 91 |
92 *found_password = iter->second; | 92 *found_password = iter->second; |
93 return true; | 93 return true; |
94 } | 94 } |
95 | 95 |
96 } // namespace autofill | 96 } // namespace autofill |
OLD | NEW |