Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: chrome/browser/password_manager/password_store_win.cc

Issue 9665007: Profile refactoring: Remove all PasswordStore code from the Profile interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add to factory list Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void PasswordStoreWin::ShutdownOnDBThread() { 178 void PasswordStoreWin::ShutdownOnDBThread() {
179 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); 179 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
180 db_handler_.reset(); 180 db_handler_.reset();
181 } 181 }
182 182
183 PasswordStore::GetLoginsRequest* PasswordStoreWin::NewGetLoginsRequest( 183 PasswordStore::GetLoginsRequest* PasswordStoreWin::NewGetLoginsRequest(
184 const GetLoginsCallback& callback) { 184 const GetLoginsCallback& callback) {
185 return new FormGetLoginsRequest(callback); 185 return new FormGetLoginsRequest(callback);
186 } 186 }
187 187
188 void PasswordStoreWin::Shutdown() { 188 void PasswordStoreWin::ShutdownOnUIThread() {
189 BrowserThread::PostTask( 189 BrowserThread::PostTask(
190 BrowserThread::DB, FROM_HERE, 190 BrowserThread::DB, FROM_HERE,
191 base::Bind(&PasswordStoreWin::ShutdownOnDBThread, this)); 191 base::Bind(&PasswordStoreWin::ShutdownOnDBThread, this));
192 PasswordStoreDefault::Shutdown(); 192 PasswordStoreDefault::ShutdownOnUIThread();
193 } 193 }
194 194
195 void PasswordStoreWin::ForwardLoginsResult(GetLoginsRequest* request) { 195 void PasswordStoreWin::ForwardLoginsResult(GetLoginsRequest* request) {
196 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); 196 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
197 if (static_cast<FormGetLoginsRequest*>(request)->IsLoginsRequest() && 197 if (static_cast<FormGetLoginsRequest*>(request)->IsLoginsRequest() &&
198 request->value.empty() && db_handler_.get()) { 198 request->value.empty() && db_handler_.get()) {
199 db_handler_->GetIE7Login( 199 db_handler_->GetIE7Login(
200 static_cast<FormGetLoginsRequest*>(request)->form()->origin, 200 static_cast<FormGetLoginsRequest*>(request)->form()->origin,
201 request); 201 request);
202 } else { 202 } else {
203 PasswordStore::ForwardLoginsResult(request); 203 PasswordStore::ForwardLoginsResult(request);
204 } 204 }
205 } 205 }
206 206
207 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request, 207 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request,
208 const PasswordForm& form) { 208 const PasswordForm& form) {
209 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form); 209 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form);
210 210
211 PasswordStoreDefault::GetLoginsImpl(request, form); 211 PasswordStoreDefault::GetLoginsImpl(request, form);
212 } 212 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_win.h ('k') | chrome/browser/password_manager/password_store_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698