| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 158 |
| 159 DCHECK_EQ(PASSWORD_IE7_RESULT, result->GetType()); | 159 DCHECK_EQ(PASSWORD_IE7_RESULT, result->GetType()); |
| 160 PasswordForm* form = | 160 PasswordForm* form = |
| 161 static_cast<FormGetLoginsRequest*>(request.get())->form(); | 161 static_cast<FormGetLoginsRequest*>(request.get())->form(); |
| 162 DCHECK(form); | 162 DCHECK(form); |
| 163 PasswordForm* ie7_form = GetIE7Result(result, *form); | 163 PasswordForm* ie7_form = GetIE7Result(result, *form); |
| 164 | 164 |
| 165 if (ie7_form) | 165 if (ie7_form) |
| 166 request->value.push_back(ie7_form); | 166 request->value.push_back(ie7_form); |
| 167 | 167 |
| 168 request->ForwardResult(request->handle(), request->value); | 168 // Note that we call the parent implementation, not ours. |
| 169 PasswordStore::ForwardLoginsResult(request); |
| 169 } | 170 } |
| 170 | 171 |
| 171 PasswordStoreWin::PasswordStoreWin(LoginDatabase* login_database, | 172 PasswordStoreWin::PasswordStoreWin(LoginDatabase* login_database, |
| 172 Profile* profile, | 173 Profile* profile, |
| 173 WebDataService* web_data_service) | 174 WebDataService* web_data_service) |
| 174 : PasswordStoreDefault(login_database, profile) { | 175 : PasswordStoreDefault(login_database, profile) { |
| 175 db_handler_.reset(new DBHandler(web_data_service, this)); | 176 db_handler_.reset(new DBHandler(web_data_service, this)); |
| 176 } | 177 } |
| 177 | 178 |
| 178 PasswordStoreWin::~PasswordStoreWin() { | 179 PasswordStoreWin::~PasswordStoreWin() { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 206 PasswordStore::ForwardLoginsResult(request); | 207 PasswordStore::ForwardLoginsResult(request); |
| 207 } | 208 } |
| 208 } | 209 } |
| 209 | 210 |
| 210 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request, | 211 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request, |
| 211 const PasswordForm& form) { | 212 const PasswordForm& form) { |
| 212 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form); | 213 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form); |
| 213 | 214 |
| 214 PasswordStoreDefault::GetLoginsImpl(request, form); | 215 PasswordStoreDefault::GetLoginsImpl(request, form); |
| 215 } | 216 } |
| OLD | NEW |