OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_store_win.h" | 5 #include "chrome/browser/password_manager/password_store_win.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
13 #include "base/profiler/scoped_tracker.h" | 16 #include "base/profiler/scoped_tracker.h" |
14 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
16 #include "components/os_crypt/ie7_password_win.h" | 19 #include "components/os_crypt/ie7_password_win.h" |
17 #include "components/password_manager/core/browser/password_manager.h" | 20 #include "components/password_manager/core/browser/password_manager.h" |
18 #include "components/password_manager/core/browser/webdata/password_web_data_ser
vice_win.h" | 21 #include "components/password_manager/core/browser/webdata/password_web_data_ser
vice_win.h" |
19 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
20 | 23 |
21 using autofill::PasswordForm; | 24 using autofill::PasswordForm; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 ScopedVector<autofill::PasswordForm> matched_forms( | 211 ScopedVector<autofill::PasswordForm> matched_forms( |
209 FillMatchingLogins(form, prompt_policy)); | 212 FillMatchingLogins(form, prompt_policy)); |
210 if (matched_forms.empty() && db_handler_) { | 213 if (matched_forms.empty() && db_handler_) { |
211 db_handler_->GetIE7Login( | 214 db_handler_->GetIE7Login( |
212 form, base::Bind(&GetLoginsRequest::NotifyConsumerWithResults, | 215 form, base::Bind(&GetLoginsRequest::NotifyConsumerWithResults, |
213 base::Owned(request.release()))); | 216 base::Owned(request.release()))); |
214 } else { | 217 } else { |
215 request->NotifyConsumerWithResults(matched_forms.Pass()); | 218 request->NotifyConsumerWithResults(matched_forms.Pass()); |
216 } | 219 } |
217 } | 220 } |
OLD | NEW |