OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/password_manager/password_manager.h" | 5 #include "chrome/browser/password_manager/password_manager.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "chrome/browser/password_manager/password_form_manager.h" | |
12 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profile.h" |
13 #include "chrome/browser/tab_contents/tab_contents.h" | 12 #include "chrome/browser/tab_contents/tab_contents.h" |
14 #include "chrome/common/notification_registrar.h" | 13 #include "chrome/common/notification_registrar.h" |
15 #include "chrome/common/notification_service.h" | 14 #include "chrome/common/notification_service.h" |
16 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
17 #include "chrome/common/pref_service.h" | 16 #include "chrome/common/pref_service.h" |
18 #include "grit/chromium_strings.h" | 17 #include "grit/chromium_strings.h" |
19 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
20 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" |
21 | 20 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 preferred_match->action.GetWithEmptyPath(); | 227 preferred_match->action.GetWithEmptyPath(); |
229 PasswordFormDomManager::FillData fill_data; | 228 PasswordFormDomManager::FillData fill_data; |
230 PasswordFormDomManager::InitFillData(form_for_autofill, | 229 PasswordFormDomManager::InitFillData(form_for_autofill, |
231 best_matches, preferred_match, | 230 best_matches, preferred_match, |
232 action_mismatch, | 231 action_mismatch, |
233 &fill_data); | 232 &fill_data); |
234 tab_contents_->render_view_host()->FillPasswordForm(fill_data); | 233 tab_contents_->render_view_host()->FillPasswordForm(fill_data); |
235 return; | 234 return; |
236 } | 235 } |
237 default: | 236 default: |
238 if (observer_) { | 237 if (observer_) |
239 observer_->OnAutofillDataAvailable(preferred_match->username_value, | 238 observer_->OnAutofillDataAvailable(preferred_match->username_value, |
240 preferred_match->password_value); | 239 preferred_match->password_value); |
241 } | |
242 } | 240 } |
243 } | 241 } |
OLD | NEW |