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/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
8 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
9 #include "base/string_util.h" | 10 #include "base/string_util.h" |
10 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profile.h" |
11 #include "chrome/browser/tab_contents/tab_contents.h" | 12 #include "chrome/browser/tab_contents/tab_contents.h" |
12 #include "chrome/common/l10n_util.h" | |
13 #include "chrome/common/notification_registrar.h" | 13 #include "chrome/common/notification_registrar.h" |
14 #include "chrome/common/notification_service.h" | 14 #include "chrome/common/notification_service.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
16 #include "chrome/common/pref_service.h" | 16 #include "chrome/common/pref_service.h" |
17 #include "grit/chromium_strings.h" | 17 #include "grit/chromium_strings.h" |
18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
19 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" |
20 | 20 |
21 // After a successful *new* login attempt, we take the PasswordFormManager in | 21 // After a successful *new* login attempt, we take the PasswordFormManager in |
22 // provisional_save_manager_ and move it to a SavePasswordInfoBarDelegate while | 22 // provisional_save_manager_ and move it to a SavePasswordInfoBarDelegate while |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 &fill_data); | 232 &fill_data); |
233 tab_contents_->render_view_host()->FillPasswordForm(fill_data); | 233 tab_contents_->render_view_host()->FillPasswordForm(fill_data); |
234 return; | 234 return; |
235 } | 235 } |
236 default: | 236 default: |
237 if (observer_) | 237 if (observer_) |
238 observer_->OnAutofillDataAvailable(preferred_match->username_value, | 238 observer_->OnAutofillDataAvailable(preferred_match->username_value, |
239 preferred_match->password_value); | 239 preferred_match->password_value); |
240 } | 240 } |
241 } | 241 } |
OLD | NEW |