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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "app/l10n_util.h" | |
10 #include "app/resource_bundle.h" | |
11 #include "base/platform_thread.h" | 9 #include "base/platform_thread.h" |
12 #include "base/stl_util-inl.h" | 10 #include "base/stl_util-inl.h" |
13 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/metrics/user_metrics.h" | 12 #include "chrome/browser/metrics/user_metrics.h" |
15 #include "chrome/browser/password_manager/password_form_manager.h" | 13 #include "chrome/browser/password_manager/password_form_manager.h" |
16 #include "chrome/browser/password_manager/password_manager_delegate.h" | 14 #include "chrome/browser/password_manager/password_manager_delegate.h" |
17 #include "chrome/browser/pref_service.h" | 15 #include "chrome/browser/pref_service.h" |
18 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profile.h" |
19 #include "chrome/common/notification_registrar.h" | 17 #include "chrome/common/notification_registrar.h" |
20 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 return; | 204 return; |
207 } | 205 } |
208 default: | 206 default: |
209 if (observer_) { | 207 if (observer_) { |
210 observer_->OnAutofillDataAvailable( | 208 observer_->OnAutofillDataAvailable( |
211 UTF16ToWideHack(preferred_match->username_value), | 209 UTF16ToWideHack(preferred_match->username_value), |
212 UTF16ToWideHack(preferred_match->password_value)); | 210 UTF16ToWideHack(preferred_match->password_value)); |
213 } | 211 } |
214 } | 212 } |
215 } | 213 } |
OLD | NEW |