| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 request->ForwardResult(request->handle(), request->value); |
| 169 } | 169 } |
| 170 | 170 |
| 171 PasswordStoreWin::PasswordStoreWin(LoginDatabase* login_database, | 171 PasswordStoreWin::PasswordStoreWin(LoginDatabase* login_database, |
| 172 Profile* profile, | 172 Profile* profile, |
| 173 WebDataService* web_data_service) | 173 WebDataService* web_data_service) |
| 174 : PasswordStoreDefault(login_database, profile, web_data_service) { | 174 : PasswordStoreDefault(login_database, profile) { |
| 175 db_handler_.reset(new DBHandler(web_data_service, this)); | 175 db_handler_.reset(new DBHandler(web_data_service, this)); |
| 176 } | 176 } |
| 177 | 177 |
| 178 PasswordStoreWin::~PasswordStoreWin() { | 178 PasswordStoreWin::~PasswordStoreWin() { |
| 179 } | 179 } |
| 180 | 180 |
| 181 void PasswordStoreWin::ShutdownOnDBThread() { | 181 void PasswordStoreWin::ShutdownOnDBThread() { |
| 182 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); | 182 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); |
| 183 db_handler_.reset(); | 183 db_handler_.reset(); |
| 184 } | 184 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 206 PasswordStore::ForwardLoginsResult(request); | 206 PasswordStore::ForwardLoginsResult(request); |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 | 209 |
| 210 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request, | 210 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request, |
| 211 const PasswordForm& form) { | 211 const PasswordForm& form) { |
| 212 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form); | 212 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form); |
| 213 | 213 |
| 214 PasswordStoreDefault::GetLoginsImpl(request, form); | 214 PasswordStoreDefault::GetLoginsImpl(request, form); |
| 215 } | 215 } |
| OLD | NEW |