Index: chrome/browser/webdata/password_web_data_service_win.cc |
diff --git a/chrome/browser/webdata/password_web_data_service_win.cc b/chrome/browser/webdata/password_web_data_service_win.cc |
deleted file mode 100644 |
index 61557484d9d6a2891ed1a5b8fa0fb959ed2e62be..0000000000000000000000000000000000000000 |
--- a/chrome/browser/webdata/password_web_data_service_win.cc |
+++ /dev/null |
@@ -1,78 +0,0 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include "chrome/browser/webdata/password_web_data_service_win.h" |
- |
-#include "base/bind.h" |
-#include "chrome/browser/webdata/logins_table.h" |
-#include "components/os_crypt/ie7_password_win.h" |
-#include "components/webdata/common/web_database_service.h" |
-#include "content/public/browser/browser_thread.h" |
- |
-PasswordWebDataService::PasswordWebDataService( |
- scoped_refptr<WebDatabaseService> wdbs, |
- const ProfileErrorCallback& callback) |
- : WebDataServiceBase( |
- wdbs, |
- callback, |
- content::BrowserThread::GetMessageLoopProxyForThread( |
- content::BrowserThread::UI)) { |
-} |
- |
-void PasswordWebDataService::AddIE7Login(const IE7PasswordInfo& info) { |
- wdbs_->ScheduleDBTask( |
- FROM_HERE, |
- base::Bind(&PasswordWebDataService::AddIE7LoginImpl, this, info)); |
-} |
- |
-void PasswordWebDataService::RemoveIE7Login(const IE7PasswordInfo& info) { |
- wdbs_->ScheduleDBTask( |
- FROM_HERE, |
- base::Bind(&PasswordWebDataService::RemoveIE7LoginImpl, this, info)); |
-} |
- |
-PasswordWebDataService::Handle PasswordWebDataService::GetIE7Login( |
- const IE7PasswordInfo& info, |
- WebDataServiceConsumer* consumer) { |
- return wdbs_->ScheduleDBTaskWithResult( |
- FROM_HERE, |
- base::Bind(&PasswordWebDataService::GetIE7LoginImpl, this, info), |
- consumer); |
-} |
- |
-WebDatabase::State PasswordWebDataService::AddIE7LoginImpl( |
- const IE7PasswordInfo& info, |
- WebDatabase* db) { |
- return LoginsTable::FromWebDatabase(db)->AddIE7Login(info) ? |
- WebDatabase::COMMIT_NEEDED : WebDatabase::COMMIT_NOT_NEEDED; |
-} |
- |
-WebDatabase::State PasswordWebDataService::RemoveIE7LoginImpl( |
- const IE7PasswordInfo& info, |
- WebDatabase* db) { |
- return LoginsTable::FromWebDatabase(db)->RemoveIE7Login(info) ? |
- WebDatabase::COMMIT_NEEDED : WebDatabase::COMMIT_NOT_NEEDED; |
-} |
- |
-scoped_ptr<WDTypedResult> PasswordWebDataService::GetIE7LoginImpl( |
- const IE7PasswordInfo& info, |
- WebDatabase* db) { |
- IE7PasswordInfo result; |
- LoginsTable::FromWebDatabase(db)->GetIE7Login(info, &result); |
- return scoped_ptr<WDTypedResult>( |
- new WDResult<IE7PasswordInfo>(PASSWORD_IE7_RESULT, result)); |
-} |
- |
-//////////////////////////////////////////////////////////////////////////////// |
- |
-PasswordWebDataService::PasswordWebDataService() |
- : WebDataServiceBase( |
- NULL, |
- ProfileErrorCallback(), |
- content::BrowserThread::GetMessageLoopProxyForThread( |
- content::BrowserThread::UI)) { |
-} |
- |
-PasswordWebDataService::~PasswordWebDataService() { |
-} |