| 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" |
| 11 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" |
| 12 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
| 13 #include "chrome/common/notification_registrar.h" | 14 #include "chrome/common/notification_registrar.h" |
| 14 #include "chrome/common/notification_service.h" | 15 #include "chrome/common/notification_service.h" |
| 15 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 16 #include "chrome/common/pref_service.h" | 17 #include "chrome/common/pref_service.h" |
| 17 #include "grit/chromium_strings.h" | 18 #include "grit/chromium_strings.h" |
| 18 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
| 19 #include "grit/theme_resources.h" | 20 #include "grit/theme_resources.h" |
| 20 | 21 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 preferred_match->action.GetWithEmptyPath(); | 228 preferred_match->action.GetWithEmptyPath(); |
| 228 PasswordFormDomManager::FillData fill_data; | 229 PasswordFormDomManager::FillData fill_data; |
| 229 PasswordFormDomManager::InitFillData(form_for_autofill, | 230 PasswordFormDomManager::InitFillData(form_for_autofill, |
| 230 best_matches, preferred_match, | 231 best_matches, preferred_match, |
| 231 action_mismatch, | 232 action_mismatch, |
| 232 &fill_data); | 233 &fill_data); |
| 233 tab_contents_->render_view_host()->FillPasswordForm(fill_data); | 234 tab_contents_->render_view_host()->FillPasswordForm(fill_data); |
| 234 return; | 235 return; |
| 235 } | 236 } |
| 236 default: | 237 default: |
| 237 if (observer_) | 238 if (observer_) { |
| 238 observer_->OnAutofillDataAvailable(preferred_match->username_value, | 239 observer_->OnAutofillDataAvailable(preferred_match->username_value, |
| 239 preferred_match->password_value); | 240 preferred_match->password_value); |
| 241 } |
| 240 } | 242 } |
| 241 } | 243 } |
| OLD | NEW |