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 <map> | 7 #include <map> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 if (matched_forms.empty() && db_handler_.get()) { | 189 if (matched_forms.empty() && db_handler_.get()) { |
190 db_handler_->GetIE7Login(form, callback_runner); | 190 db_handler_->GetIE7Login(form, callback_runner); |
191 } else { | 191 } else { |
192 // No need to get IE7 login. | 192 // No need to get IE7 login. |
193 callback_runner.Run(matched_forms); | 193 callback_runner.Run(matched_forms); |
194 } | 194 } |
195 } | 195 } |
196 | 196 |
197 void PasswordStoreWin::GetLoginsImpl( | 197 void PasswordStoreWin::GetLoginsImpl( |
198 const PasswordForm& form, | 198 const PasswordForm& form, |
| 199 AuthorizationPromptPolicy prompt_policy, |
199 const ConsumerCallbackRunner& callback_runner) { | 200 const ConsumerCallbackRunner& callback_runner) { |
200 ConsumerCallbackRunner get_ie7_login = | 201 ConsumerCallbackRunner get_ie7_login = |
201 base::Bind(&PasswordStoreWin::GetIE7LoginIfNecessary, | 202 base::Bind(&PasswordStoreWin::GetIE7LoginIfNecessary, |
202 this, form, callback_runner); | 203 this, form, callback_runner); |
203 PasswordStoreDefault::GetLoginsImpl(form, get_ie7_login); | 204 PasswordStoreDefault::GetLoginsImpl(form, prompt_policy, get_ie7_login); |
204 } | 205 } |
OLD | NEW |