OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/threading/platform_thread.h" | 10 #include "base/threading/platform_thread.h" |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 webkit_glue::PasswordFormDomManager::InitFillData(form_for_autofill, | 229 webkit_glue::PasswordFormDomManager::InitFillData(form_for_autofill, |
230 best_matches, | 230 best_matches, |
231 preferred_match, | 231 preferred_match, |
232 wait_for_username, | 232 wait_for_username, |
233 &fill_data); | 233 &fill_data); |
234 delegate_->FillPasswordForm(fill_data); | 234 delegate_->FillPasswordForm(fill_data); |
235 return; | 235 return; |
236 } | 236 } |
237 default: | 237 default: |
238 if (observer_) { | 238 if (observer_) { |
239 observer_->OnAutofillDataAvailable( | 239 observer_->OnAutofillDataAvailable(preferred_match->username_value, |
240 UTF16ToWideHack(preferred_match->username_value), | 240 preferred_match->password_value); |
241 UTF16ToWideHack(preferred_match->password_value)); | |
242 } | 241 } |
243 } | 242 } |
244 } | 243 } |
OLD | NEW |