summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browsing_data_remover.cc
diff options
context:
space:
mode:
authorstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 23:40:28 +0000
committerstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 23:40:28 +0000
commit270b85eecbc83119c4b53f84c6c6e71c0a93afb0 (patch)
tree7beb6588ddc11f52e64c5d913f1ed63b24c275fe /chrome/browser/browsing_data_remover.cc
parent66c7dc77fc7d5ea4075bfaaaa2b7805f323829e9 (diff)
downloadchromium_src-270b85eecbc83119c4b53f84c6c6e71c0a93afb0.zip
chromium_src-270b85eecbc83119c4b53f84c6c6e71c0a93afb0.tar.gz
chromium_src-270b85eecbc83119c4b53f84c6c6e71c0a93afb0.tar.bz2
Add the rest of the password manager API to PasswordStore, and move clients
off of WebDataService. The methods are unimplemented on the Mac for the moment, and do passthroughs to WDS on Windows as with the rest of the Windows PasswordStore interface. BUG=none TEST=Saving, viewing, and deleting password should still work on Windows. Review URL: http://codereview.chromium.org/155259 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_remover.cc')
-rw-r--r--chrome/browser/browsing_data_remover.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc
index d265fdc..abc97ef 100644
--- a/chrome/browser/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data_remover.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/history/history.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/metrics/user_metrics.h"
+#include "chrome/browser/password_manager/password_store.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/browser/sessions/session_service.h"
#include "chrome/browser/sessions/tab_restore_service.h"
@@ -115,10 +116,10 @@ void BrowsingDataRemover::Remove(int remove_mask) {
if (remove_mask & REMOVE_PASSWORDS) {
UserMetrics::RecordAction(L"ClearBrowsingData_Passwords", profile_);
- WebDataService* web_data_service =
- profile_->GetWebDataService(Profile::EXPLICIT_ACCESS);
+ PasswordStore* password_store =
+ profile_->GetPasswordStore(Profile::EXPLICIT_ACCESS);
- web_data_service->RemoveLoginsCreatedBetween(delete_begin_, delete_end_);
+ password_store->RemoveLoginsCreatedBetween(delete_begin_, delete_end_);
}
if (remove_mask & REMOVE_FORM_DATA) {