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

Side by Side Diff: components/autofill/browser/password_autofill_manager.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698